diff --git a/app/Http/Controllers/AnalisaController.php b/app/Http/Controllers/AnalisaController.php new file mode 100644 index 0000000..40ea4bd --- /dev/null +++ b/app/Http/Controllers/AnalisaController.php @@ -0,0 +1,16 @@ +chkboxsag); + + $validated = $request->validate([ + 'chkboxsag' => 'required', + ]); + + $arraybayar = []; foreach($request->chkboxsag as $index=>$sag) { - dd($sag); + $gadai = Http::get(config('api.url') . '/api/gadai/norujukan/'. $sag)->json(); + + $arraybayar = [$gadai[0][0]]; } + + return view('pembayaran.checkout',compact('arraybayar')); } } diff --git a/resources/views/analisa/index.blade.php b/resources/views/analisa/index.blade.php new file mode 100644 index 0000000..e6eb042 --- /dev/null +++ b/resources/views/analisa/index.blade.php @@ -0,0 +1,415 @@ +@extends('layouts.app') + +@section('content') + @include('layouts.headers.useranalisa') + + +
+
+ + +
+
+
+
+
+
+
Gadai
+ 350,897 +
+
+
+ +
+
+
+

+ 3.48% + Since last month +

+
+
+
+ +
+
+
+
+
+
Tebus
+ 2,356 +
+
+
+ +
+
+
+

+ + 75% +

+
+
+
+
+ + + Since last week +

+
+
+
+
+
+
+
+
+
Tebus
+ 924 +
+
+
+ +
+
+
+

+ 1.10% + Since yesterday +

+
+
+
+
+
+
+
+
+
Lelong
+ 49,65% +
+
+
+ +
+
+
+

+ 12% + Since last month +

+
+
+
+
+ + +
+
+
+ + {{-- --}} +
+ {{--
+ New + Filters +
--}} +
+
+
+
+ +
+
+
+
+
+
+
+
Keseluruhan
+

Jumlah Bayaran

+
+ +
+
+
+ +
+ + +
+
+
+
+
+
+
+
+
+
Performance
+

Gadaian (Bulanan)

+
+
+
+
+ +
+ +
+
+
+
+
+
+
+
+
+
+
+

Page visits

+
+
+ See all +
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Page nameVisitorsUnique usersBounce rate
+ /argon/ + + 4,569 + + 340 + + 46,53% +
+ /argon/index.html + + 3,985 + + 319 + + 46,53% +
+ /argon/charts.html + + 3,513 + + 294 + + 36,49% +
+ /argon/tables.html + + 2,050 + + 147 + + 50,87% +
+ /argon/profile.html + + 1,795 + + 190 + + 46,53% +
+
+
+
+
+
+
+
+
+

Harga Emas

+
+
+ See all +
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ReferralVisitors
+ Facebook + + 1,480 + +
+ 60% +
+
+
+
+
+
+
+ Facebook + + 5,480 + +
+ 70% +
+
+
+
+
+
+
+ Google + + 4,807 + +
+ 80% +
+
+
+
+
+
+
+ Instagram + + 3,678 + +
+ 75% +
+
+
+
+
+
+
+ twitter + + 2,645 + +
+ 30% +
+
+
+
+
+
+
+
+
+
+
+ +
+ + + +@endsection + +@push('js') + + +@endpush \ No newline at end of file diff --git a/resources/views/dashboard.blade.php b/resources/views/dashboard.blade.php index 66ec6b8..e1cb7c5 100644 --- a/resources/views/dashboard.blade.php +++ b/resources/views/dashboard.blade.php @@ -84,7 +84,7 @@
-
+
diff --git a/resources/views/layouts/headers/cards.blade.php b/resources/views/layouts/headers/cards.blade.php index 9c819be..895b8f4 100644 --- a/resources/views/layouts/headers/cards.blade.php +++ b/resources/views/layouts/headers/cards.blade.php @@ -1,93 +1,6 @@
- {{--
- -
-
-
-
-
-
-
Traffic
- 350,897 -
-
-
- -
-
-
-

- 3.48% - Since last month -

-
-
-
-
-
-
-
-
-
New users
- 2,356 -
-
-
- -
-
-
-

- 3.48% - Since last week -

-
-
-
-
-
-
-
-
-
Sales
- 924 -
-
-
- -
-
-
-

- 1.10% - Since yesterday -

-
-
-
-
-
-
-
-
-
Performance
- 49,65% -
-
-
- -
-
-
-

- 12% - Since last month -

-
-
-
-
-
--}} + +
\ No newline at end of file diff --git a/resources/views/layouts/headers/useranalisa.blade.php b/resources/views/layouts/headers/useranalisa.blade.php new file mode 100644 index 0000000..114875f --- /dev/null +++ b/resources/views/layouts/headers/useranalisa.blade.php @@ -0,0 +1,5 @@ +
+
+ +
+
\ No newline at end of file diff --git a/resources/views/pembayaran/checkout.blade.php b/resources/views/pembayaran/checkout.blade.php new file mode 100644 index 0000000..60660a6 --- /dev/null +++ b/resources/views/pembayaran/checkout.blade.php @@ -0,0 +1,193 @@ +@extends('layouts.app') + +@section('content') + @include('layouts.headers.cards') + + +
+
+
+
+ + {{--
+ New + Filters +
--}} +
+
+
+
+ +
+ +
+ @csrf + +
+
+
+
+
+
+

Senarai Surat

+
+
+ +
+
+
+ +
+ + + + + + + + + + + + @foreach($arraybayar as $index=>$bayar) + + + + + + + + + + @endforeach +
NoNo RujukanPembiayaanUpahBayaran
+ {{ $loop->iteration }} + + {{ $bayar['norujukan'] }} + + {{ $bayar['pinjaman'] }} + + {{ $bayar['bakiupah'] }} + + +
+
+
+
+ + +
+
+
+
+
+

Ringkasan Pesanan

+
+
+ +
+
+
+
+ +
+ +
+
+ +
+ +
+ RM 0.00 +
+
+
+ + +
+
+ +
+ +
+ RM 0.00 +
+
+
+ + +
+
+ +
+ +
+ RM 0.00 +
+
+
+ +
+
+ +
+ +
+
+ +
+
+ + + + +@endsection + +@push('js') + + +@endpush \ No newline at end of file diff --git a/resources/views/pembayaran/senaraibayaran.blade.php b/resources/views/pembayaran/senaraibayaran.blade.php index 403f7fb..1fbe436 100644 --- a/resources/views/pembayaran/senaraibayaran.blade.php +++ b/resources/views/pembayaran/senaraibayaran.blade.php @@ -38,7 +38,7 @@

Belum Tawarruq

-
+ @csrf
@@ -112,11 +112,6 @@ diff --git a/routes/web.php b/routes/web.php index cf80704..6671fa2 100644 --- a/routes/web.php +++ b/routes/web.php @@ -55,7 +55,7 @@ Route::get('/senaraisag', 'App\Http\Controllers\SemakController@SenaraiSAG')->na Route::get('/semakbayaran', 'App\Http\Controllers\BayaranController@SenaraiPembayaran')->name('pembayaransag'); // Route::get('/penyata', 'App\Http\Controllers\PenyataController@ShowPenyata')->name('penyata.show'); - +Route::get('/analisa', 'App\Http\Controllers\AnalisaController@index')->name('analisa.index'); Route::get('/penyata/{norujukan}', function ($norujukan) {