diff --git a/app/Http/Controllers/HomeController.php b/app/Http/Controllers/HomeController.php index daacfcc..b42635e 100644 --- a/app/Http/Controllers/HomeController.php +++ b/app/Http/Controllers/HomeController.php @@ -61,6 +61,26 @@ class HomeController extends Controller $bilanganlelong += 1; } - return view('includes.home',compact('hargaemasterdahulu','bilangan','sixmonths','total','bilanganlelong')); + $arraysag = []; + $belum_tebus = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/customers/'. $auth_user['icno'] . '/gadai/' . 'belum_tebus')->json(); + + if(is_array($belum_tebus)) + { + if(sizeof($belum_tebus) > 0) + { + foreach($belum_tebus as $index=>$bt) + { + foreach($bt as $index1=>$bet) + { + array_push($arraysag,$bet); + } + } + } + } + + $belum_tebus = $arraysag; + $api_url = config('api.url'); + + return view('includes.home',compact('api_url','belum_tebus','hargaemasterdahulu','bilangan','sixmonths','total','bilanganlelong')); } } diff --git a/resources/views/includes/bayaran/pembayaransag.blade.php b/resources/views/includes/bayaran/pembayaransag.blade.php index 5b15263..c8173ea 100644 --- a/resources/views/includes/bayaran/pembayaransag.blade.php +++ b/resources/views/includes/bayaran/pembayaransag.blade.php @@ -307,7 +307,7 @@
- Batal + Batal
diff --git a/resources/views/includes/bayaran/senaraibayaransag.blade.php b/resources/views/includes/bayaran/senaraibayaransag.blade.php index 7debfda..c39fa94 100644 --- a/resources/views/includes/bayaran/senaraibayaransag.blade.php +++ b/resources/views/includes/bayaran/senaraibayaransag.blade.php @@ -30,7 +30,7 @@
diff --git a/resources/views/includes/home.blade copy.php b/resources/views/includes/home.blade copy.php new file mode 100644 index 0000000..9494aa9 --- /dev/null +++ b/resources/views/includes/home.blade copy.php @@ -0,0 +1,243 @@ +@extends ('layouts.indexfirst') + +@section('content') + + + +Home | Portal Pelanggan + +
+
+
+
+
+
+
Jumlah Pemb. Semasa
+ RM{{ number_format($total,2) }} +
+
+
+ +
+
+ Masuk +
+
+
+
+
+ +
+
+
+
+
+
Pembiayaan
Aktif
+ {{ $bilangan }} +
+
+
+ +
+
+ Masuk +
+
+
+
+
+
+
+
+
+
+
Pembiayaan Melebihi 6 Bulan
+ {{ $sixmonths }} +
+
+
+ +
+
+ Masuk +
+
+
+
+
+
+
+
+
+
+
Pembiayaan Akan Dilelong
+ {{ $bilanganlelong }} +
+
+
+ +
+
+ Masuk +
+
+
+
+
+
+ +{{--
+
+ + +
+
--}} +
+
+
+ + img-colored-shadow + +
+
+
+ Pembayaran +
+ Masuk +
+
+
+
+
+
+ + + + + img-colored-shadow + +
+
+
+ Tebus +
+ +
+
+
+{{--
+ +
--}} +
+
+
+ + + + img-colored-shadow + +
+
+
+ Pitih Emas +
+ +
+
+
+ +
+
+ {{--
+
+
+

Harga Emas

+
+
+
--}} +
+ + + + + + + {{-- --}} + + + + @foreach($hargaemasterdahulu as $index=>$hm) + + + + + @endforeach + +
KaratHarga (RM)Perubahan (%)
{{ $hm['karat'] }}{{ $hm['hargasemasa'] }}
+
+
+
+ + + +@endsection \ No newline at end of file diff --git a/resources/views/includes/home.blade.php b/resources/views/includes/home.blade.php index 9494aa9..3a3dae4 100644 --- a/resources/views/includes/home.blade.php +++ b/resources/views/includes/home.blade.php @@ -1,6 +1,6 @@ @extends ('layouts.indexfirst') - @section('content') +@include('modal.marhun')