From a050223f6b932cc3018938bbfb0d64e0e29a1c33 Mon Sep 17 00:00:00 2001 From: ibnu Date: Thu, 12 Oct 2023 10:20:27 +0700 Subject: [PATCH] update and fix conflict --- app/Http/Controllers/M_assetController.php | 4 +- .../manajement_asset.blade.php | 70 +++++++++++++++++-- .../SettingPlatform/manajement_user.blade.php | 4 +- resources/views/layouts/link.blade.php | 1 + resources/views/layouts/main.blade.php | 4 +- 5 files changed, 72 insertions(+), 11 deletions(-) diff --git a/app/Http/Controllers/M_assetController.php b/app/Http/Controllers/M_assetController.php index 2f35a23..401c2a1 100644 --- a/app/Http/Controllers/M_assetController.php +++ b/app/Http/Controllers/M_assetController.php @@ -64,7 +64,7 @@ class M_assetController extends Controller // Mendapatkan produk terbaru $latestAsset = \App\Models\m_asset::latest()->first(); // Mendapatkan tahun saat ini - $currentYear = date("Y"); + $currentYear = date("Y-m-d"); // Menghitung nomor urut untuk kode barang if ($latestAsset == null) { // Kode pertama @@ -75,7 +75,7 @@ class M_assetController extends Controller $nomorUrut = intval($lastCode) + 1; } // Menggabungkan semua komponen kode barang - $seri = 'AST' . $currentYear . str_pad($nomorUrut, STR_PAD_LEFT); + $seri = 'AST' . $currentYear .'-'. str_pad($nomorUrut, STR_PAD_LEFT); // Validasi input $request->validate([ 'name' => 'required', diff --git a/resources/views/addons/SettingPlatform/manajement_asset.blade.php b/resources/views/addons/SettingPlatform/manajement_asset.blade.php index 63366c4..5c6f491 100644 --- a/resources/views/addons/SettingPlatform/manajement_asset.blade.php +++ b/resources/views/addons/SettingPlatform/manajement_asset.blade.php @@ -51,11 +51,11 @@ Deskripsi Gudang Tanggal - QR + Jumlah QR Print Action - + @foreach ($asset as $data) @@ -76,10 +76,12 @@ {{ \Carbon\Carbon::parse($data->date)->format('d-m-Y') }} {{ $data->qr_count }} + + - - + @@ -201,4 +203,62 @@ @endforeach + + + @foreach ($asset as $data) + + @endforeach @endsection diff --git a/resources/views/addons/SettingPlatform/manajement_user.blade.php b/resources/views/addons/SettingPlatform/manajement_user.blade.php index 0c93383..2faf1bd 100644 --- a/resources/views/addons/SettingPlatform/manajement_user.blade.php +++ b/resources/views/addons/SettingPlatform/manajement_user.blade.php @@ -18,9 +18,9 @@
Data User
- {{-- + + Tambah data - --}} +
diff --git a/resources/views/layouts/link.blade.php b/resources/views/layouts/link.blade.php index cb500ef..555bb19 100644 --- a/resources/views/layouts/link.blade.php +++ b/resources/views/layouts/link.blade.php @@ -1,5 +1,6 @@ +\ {{-- --}} diff --git a/resources/views/layouts/main.blade.php b/resources/views/layouts/main.blade.php index 960adf1..c507679 100644 --- a/resources/views/layouts/main.blade.php +++ b/resources/views/layouts/main.blade.php @@ -28,7 +28,7 @@ @include('layouts.navbar') - +
{{-- @if (session()->has('success'))
@@ -50,7 +50,7 @@ @endif @yield('content') - +