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') - +