From 713a04fc4da95fcf79b6dd0233ad09d8435ba22a Mon Sep 17 00:00:00 2001 From: Amir Date: Wed, 15 Feb 2023 11:08:27 +0800 Subject: [PATCH] Fix page terima/serah marhun and scan barcode --- app/Http/Controllers/MarhunController.php | 2 + .../views/marhun/senarailelongscan.blade.php | 134 ++++++++---------- .../marhun/senarailelongterimaserah.blade.php | 65 +++++---- .../views/marhun/terimaserahmarhun.blade.php | 4 +- 4 files changed, 98 insertions(+), 107 deletions(-) diff --git a/app/Http/Controllers/MarhunController.php b/app/Http/Controllers/MarhunController.php index 9a7942e7..092a8516 100644 --- a/app/Http/Controllers/MarhunController.php +++ b/app/Http/Controllers/MarhunController.php @@ -610,6 +610,7 @@ class MarhunController extends Controller ->join('cawangan', 'cawangan_lelong.caw_id', '=', 'cawangan.id') ->where('cawangan.caw_code', $user->kodcaw) ->where('sts_lelong', 0) + ->orderBy('lelong_id', 'asc') ->get(); // $lelong = Lelong::orderBy('id', 'desc')->get(); @@ -627,6 +628,7 @@ class MarhunController extends Controller ->where('cawangan.caw_code', $user->kodcaw) ->where('sts_lelong', 0) ->select('lelong_id', 'tarikh_lelong', 'cawangan_lelong.masatamat_lelong', 'harga_emas_asas', 'jbg', 'cajlelong', 'sts_lelong') + ->orderBy('lelong_id', 'asc') ->get() ->toArray(); diff --git a/resources/views/marhun/senarailelongscan.blade.php b/resources/views/marhun/senarailelongscan.blade.php index e1a6aee0..0d8412ca 100644 --- a/resources/views/marhun/senarailelongscan.blade.php +++ b/resources/views/marhun/senarailelongscan.blade.php @@ -4,90 +4,74 @@
-
-
-
- - - -
- Senarai Lelongan Scan -
+
+
+
+
+ Scan Barcode
-
- - - - - - - - - - - - - - @foreach($arrayinfo as $lel) - - - - - - - - - - @endforeach - -
NoBatch LelongTarikh LelongStatus LelongTindakanScan KeluarScan Masuk
{{$loop->iteration}}{{ $lel['info']['lelong_id']}}@php - $myDateTime = DateTime::createFromFormat('Y-m-d', $lel['info']['tarikh_lelong'] ); - $t_lelong = $myDateTime->format('d-m-Y'); - echo($t_lelong); - @endphp - @if($lel['info']['sts_lelong'] == 0) - - @endif - - @if($lel['info']['sts_lelong'] == 0) - - @endif - - @if($lel['info']['sts_lelong'] == 0) - - @endif - - @if($lel['info']['sts_lelong'] == 0) - - @endif -
+
+
+
+ + + + + + + + + + + + + + @foreach($arrayinfo as $lel) + + + + + + + + + + @endforeach + +
NoBatch LelongTarikh LelongStatus LelongTindakanScan KeluarScan Masuk
{{$loop->iteration}}{{ $lel['info']['lelong_id']}}@php + $myDateTime = DateTime::createFromFormat('Y-m-d', $lel['info']['tarikh_lelong'] ); + $t_lelong = $myDateTime->format('d-m-Y'); + echo($t_lelong); + @endphp + @if($lel['info']['sts_lelong'] == 0) + LELONG BELUM BERMULA + @endif + + @if($lel['info']['sts_lelong'] == 0) + + @endif + + @if($lel['info']['sts_lelong'] == 0) + + @endif + + @if($lel['info']['sts_lelong'] == 0) + + @endif +
+
+
+
+
- @endsection \ No newline at end of file diff --git a/resources/views/marhun/senarailelongterimaserah.blade.php b/resources/views/marhun/senarailelongterimaserah.blade.php index f1a7544b..4700898e 100644 --- a/resources/views/marhun/senarailelongterimaserah.blade.php +++ b/resources/views/marhun/senarailelongterimaserah.blade.php @@ -7,11 +7,8 @@
- - -
- Terima/Serah Marhun + Terima/Serah Marhun
@@ -25,32 +22,40 @@

{{ $message }}

@endif - - - - - - - - - - @foreach ($lelong as $index) - - - - - @if($index->sts_lelong == 0) - - @endif - - - @endforeach - -
BilBatch LelongTarikh LelongStatus LelongTindakan
{{$loop->iteration}}{{$index->lelong_id}}{{$index->tarikh_lelong}} - - - -
+
+ + + + + + + + + + @foreach ($lelong as $index) + + + + + @if($index->sts_lelong == 0) + + @endif + + + @endforeach + +
BilBatch LelongTarikh LelongStatus LelongTindakan
{{$loop->iteration}}{{$index->lelong_id}} + @php + $myDateTime = DateTime::createFromFormat('Y-m-d', $index->tarikh_lelong ); + $t_lelong = $myDateTime->format('d-m-Y'); + echo($t_lelong); + @endphp + + LELONG BELUM BERMULA + + +
+
diff --git a/resources/views/marhun/terimaserahmarhun.blade.php b/resources/views/marhun/terimaserahmarhun.blade.php index 0dceeeef..a490dda6 100644 --- a/resources/views/marhun/terimaserahmarhun.blade.php +++ b/resources/views/marhun/terimaserahmarhun.blade.php @@ -7,11 +7,11 @@
- +
- Terima/Serah Marhun + Terima/Serah Marhun, Batch Lelong: {{ $lelong_id}}