This commit is contained in:
nurmuhammet committed 2025-09-04 09:59:38 +05:00
1 parent 772ac9ad0f
commit eefe130ad3
7 files changed
+20 -3

No files matched your search

@@ -26,6 +26,7 @@ public function index(): JsonResponse
CardPin::query() CardPin::query()
->with('branch', 'cardType') ->with('branch', 'cardType')
->where('user_id', auth()->id()) ->where('user_id', auth()->id())
->latest()
->get() ->get()
)); ));
} }
@@ -28,6 +28,7 @@ public function index(): JsonResponse
CardRequisite::query() CardRequisite::query()
->with(['cardType', 'branch']) ->with(['cardType', 'branch'])
->where('user_id', auth()->id()) ->where('user_id', auth()->id())
->latest()
->get() ->get()
)); ));
} }
@@ -22,6 +22,7 @@ public function index(): JsonResponse
return response()->json( return response()->json(
LoanRemainingOrder::query() LoanRemainingOrder::query()
->where('user_id', auth()->id()) ->where('user_id', auth()->id())
->latest()
->get() ->get()
); );
} }
+12
View File
@@ -5,6 +5,7 @@
use App\Models\Branch\Branch; use App\Models\Branch\Branch;
use App\Models\Order\Card\CardType; use App\Models\Order\Card\CardType;
use App\Models\User; use App\Models\User;
use App\Repos\Order\Loan\LoanOrderRepo;
use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo; use Illuminate\Database\Eloquent\Relations\BelongsTo;
@@ -121,4 +122,15 @@ public function priceAmount(): float
{ {
return 3.02; return 3.02;
} }
/**
* "boot" method for model
*/
protected static function boot()
{
parent::boot();
static::created(LoanOrderRepo::created());
}
} }
@@ -112,7 +112,7 @@ public function update(LoanOrderUpdateRequest $request, LoanOrder $loanOrder): J
}); });
return response()->json([ return response()->json([
'message' => __('Successfully updates'), 'message' => __('Successfully updated'),
]); ]);
} }
@@ -8,6 +8,6 @@ class VisaMasterPaymentOrderController extends Controller
{ {
public function index() public function index()
{ {
return response()->json();
} }
} }
+3 -1
View File
@@ -351,5 +351,7 @@
"Money Balance": "Galyndy", "Money Balance": "Galyndy",
"Start date": "Başlangyç sene", "Start date": "Başlangyç sene",
"End date": "Ahyrky sene", "End date": "Ahyrky sene",
"Expiry date": "Möhleti" "Expiry date": "Möhleti",
"Successfully created": "Üstünlikli döredildi",
"Successfully updated": "Üstünlikli üýtgedildi"
} }