diff --git a/app/Http/Controllers/BarangKeluarController.php b/app/Http/Controllers/BarangKeluarController.php deleted file mode 100644 index 351c312..0000000 --- a/app/Http/Controllers/BarangKeluarController.php +++ /dev/null @@ -1,92 +0,0 @@ -validate([ - 'asset_id' => 'required', - 'jumlah' => 'required', - 'tanggal_keluar' => 'required', - 'penerima_barang' => 'required', - 'exit_warehouse' => 'required', - 'keterangan' => 'required', - ]); - // dd($request); - try { - $validatedData = $request->except('_token'); - // dd($validatedData); - BarangKeluar::create($validatedData); - return redirect()->back()->with('success', 'Data barang keluar berhasil ditambah.'); - } catch (\Throwable $th) { - return redirect()->back()->with('error', 'Data barang keluar gagal ditambah.'); - } - } - - /** - * Display the specified resource. - */ - public function show($barang_masuk) - { - // - } - - /** - * Show the form for editing the specified resource. - */ - public function edit($barang_masuk) - { - // - } - - /** - * Update the specified resource in storage. - */ - public function update(Request $request, $barang_masuk) - { - // - } - - /** - * Remove the specified resource from storage. - */ - public function destroy($id) - { - // dd("oke"); - try { - $asset = BarangKeluar::findOrFail($id); - $asset->delete(); - return redirect()->back()->with('success', 'Data Barang Keluar berhasil dihapus'); - } catch (\Throwable $th) { - return redirect()->back()->with('error', 'Data Barang Keluar gagal dihapus'); - } - } -} diff --git a/app/Http/Controllers/BarangMasukController.php b/app/Http/Controllers/BarangMasukController.php deleted file mode 100644 index 7212d4e..0000000 --- a/app/Http/Controllers/BarangMasukController.php +++ /dev/null @@ -1,66 +0,0 @@ -except('_token'); $validatedData['seri'] = $seri; - $validatedData['created_by'] = $currentUser->id; // Menambahkan ID pengguna sebagai created_by - $validatedData['updated_by'] = $currentUser->id; // Menambahkan ID pengguna sebagai updated_by + $validatedData['created_by'] = $currentUser->fullname; // Menambahkan ID pengguna sebagai created_by + $validatedData['updated_by'] = $currentUser->fullname; // Menambahkan ID pengguna sebagai updated_by // dd($validatedData); // Menyimpan data ke dalam database \App\Models\m_asset::create($validatedData); @@ -86,38 +86,36 @@ class M_assetController extends Controller // dd('oke'); $asset = m_asset::find($id); $warehouse = m_warehouse::all(); - return view('MasterData.asset.show', compact('asset', 'warehouse')); + return view('dashboard.Master_Data.Asset.show', compact('asset', 'warehouse')); } // Menampilkan data QR - public function QR($id) - { - $asset = m_asset::find($id); - return QrCode::generate( - 'Hello, World!', - ); - } + // public function QR($id) + // { + // $asset = m_asset::find($id); + // return QrCode::generate( + // 'Hello, World!', + // ); + // } /** * Show the form for editing the specified resource. */ - public function edit() - { - // dd('oke'); - } + // public function edit() + // { + // // + // } /** * Update the specified resource in storage. */ public function update(Request $request, $id) { - // dd('oke'); $request->validate([ 'name' => 'required', 'description' => 'required', 'warehouse_id' => 'required', 'date' => 'required', - 'qr_count' => 'required', ]); try { $asset = m_asset::findOrFail($id); @@ -154,7 +152,7 @@ class M_assetController extends Controller // Buat objek Dompdf $dompdf = new Dompdf(); // Render tampilan ke PDF - $html = view('MasterData.asset_pdf', compact('asset'))->render(); + $html = view('dashboard.Master_Data.Asset.asset_pdf', compact('asset'))->render(); // Muat HTML ke Dompdf $dompdf->loadHtml($html); diff --git a/app/Http/Controllers/M_userController.php b/app/Http/Controllers/M_userController.php index 473c7f7..b17d30c 100644 --- a/app/Http/Controllers/M_userController.php +++ b/app/Http/Controllers/M_userController.php @@ -19,7 +19,7 @@ class M_userController extends Controller $warehouse = m_warehouse::get(); $role = m_role::get(); $user = User::get(); - return view('MasterData.user', compact('user', 'role', 'warehouse')); + return view('dashboard.Master_Data.User.index', compact('user', 'role', 'warehouse')); } /** @@ -27,7 +27,9 @@ class M_userController extends Controller */ public function create() { - // + $role = m_role::get(); + $warehouse = m_warehouse::get(); + return view('dashboard.Master_Data.User.create', compact('role', 'warehouse')); } /** @@ -52,7 +54,7 @@ class M_userController extends Controller $validatedData['updated_by'] = $currentUser->fullname; // Menggunakan nama pengguna sebagai updated_by $validatedData['password'] = bcrypt($request->input('password')); // Enkripsi password user::create($validatedData); - return redirect()->back()->with('success', 'Data User Berhasil Ditambah.'); + return redirect()->route('dashboard.user.index')->with('success', 'Data User berhasil ditambahkan'); } catch (\Throwable $th) { return redirect()->back()->with('error', 'Data User Gagal Ditambah.'); } @@ -63,19 +65,22 @@ class M_userController extends Controller */ public function show($id) { - // dd('oke'); $user = User::find($id); $role = m_role::get(); $warehouse = m_warehouse::get(); - return view('MasterData.update_user', compact('user', 'role', 'warehouse')); + return view('dashboard.Master_Data.User.show', compact('user', 'role', 'warehouse')); } /** * Show the form for editing the specified resource. */ - public function edit() + public function edit($id) { // dd('oke'); + $user = User::find($id); + $role = m_role::get(); + $warehouse = m_warehouse::get(); + return view('dashboard.Master_Data.User.edit', compact('user', 'role', 'warehouse')); } /** @@ -84,14 +89,13 @@ class M_userController extends Controller public function update(Request $request, $id) { $request->validate([ + 'username' => 'required', 'fullname' => 'required', - 'nip' => 'required', - 'email' => 'required', - 'no_hp' => 'required', + 'email' => 'required|email', 'divisi' => 'required', - 'address' => 'required', 'role_id' => 'required', 'warehouse_id' => 'required', + 'password' => 'required', ]); // dd($request->all()); try { @@ -102,18 +106,10 @@ class M_userController extends Controller $userData['updated_by'] = Auth::user()->fullname; $user->update($userData); - return redirect()->route('user.index')->with('success', 'Data User berhasil diperbaharui'); + return redirect()->route('dashboard.user.index')->with('success', 'Data User berhasil diperbaharui'); } catch (\Throwable $th) { return redirect()->back()->with('error', 'Data User gagal diperbaharui'); } - // try { - // $user = User::findOrFail($id); - // $user->update($request->all()); - - // return redirect()->route('user.index')->with('success', 'Data User berhasil diperbaharui'); - // } catch (\Throwable $th) { - // return redirect()->back()->with('error', 'Data User gagal diperbaharui'); - // } } /** diff --git a/app/Http/Controllers/PeminjamanController.php b/app/Http/Controllers/PeminjamanController.php index 136584c..58a931d 100644 --- a/app/Http/Controllers/PeminjamanController.php +++ b/app/Http/Controllers/PeminjamanController.php @@ -18,7 +18,7 @@ class PeminjamanController extends Controller $asset = m_asset::all(); $peminjaman = asset_status::get(); $warehouse = m_warehouse::get(); - return view('dashboard.peminjaman', compact('asset', 'peminjaman', 'warehouse')); + return view('dashboard.Peminjaman.index', compact('asset', 'peminjaman', 'warehouse')); } /** @@ -26,7 +26,10 @@ class PeminjamanController extends Controller */ public function create() { - // + $asset = m_asset::all(); + $peminjaman = asset_status::get(); + $warehouse = m_warehouse::get(); + return view('dashboard.Peminjaman.create', compact('asset', 'peminjaman', 'warehouse')); } /** @@ -50,11 +53,10 @@ class PeminjamanController extends Controller $validatedData['updated_by'] = $currentUser->id; // Menambahkan ID pengguna sebagai updated_by // dd($validatedData); asset_status::create($validatedData); - return redirect()->back()->with('success', 'Data peminjaman berhasil ditambah.'); + return redirect()->route('dashboard.peminjaman.index')->with('success', 'Data peminjaman berhasil ditambah.'); } catch (\Throwable $th) { return redirect()->back()->with('error', 'Data peminjaman gagal ditambah.'); } - return redirect()->back()->with('success', 'Data peminjaman berhasil ditambah.'); } /** @@ -68,9 +70,12 @@ class PeminjamanController extends Controller /** * Show the form for editing the specified resource. */ - public function edit() + public function edit($id) { - // dd('oke'); + $peminjaman = asset_status::find($id); + $asset = m_asset::all(); + $warehouse = m_warehouse::get(); + return view('dashboard.Peminjaman.edit', compact('asset', 'peminjaman', 'warehouse')); } /** @@ -90,9 +95,8 @@ class PeminjamanController extends Controller $peminjaman = asset_status::findOrFail($id); $peminjaman['updated_by'] = Auth::user()->fullname; // Menambahkan ID pengguna sebagai updated_by $peminjaman->update($request->all()); - return redirect()->back()->with('success', 'Data peminjaman berhasil diperbaharui'); + return redirect()->route('dashboard.peminjaman.index')->with('success', 'Data peminjaman berhasil diperbaharui'); } catch (\Throwable $th) { - // dd($th->getMessage()); return redirect()->back()->with('error', 'Data peminjaman gagal diperbaharui'); } } @@ -102,7 +106,6 @@ class PeminjamanController extends Controller */ public function destroy($id) { - // dd("oke"); try { $peminjaman = asset_status::findOrFail($id); $peminjaman->delete(); diff --git a/app/Http/Controllers/PengadaanController.php b/app/Http/Controllers/PengadaanController.php deleted file mode 100644 index d63f254..0000000 --- a/app/Http/Controllers/PengadaanController.php +++ /dev/null @@ -1,61 +0,0 @@ -all()); $request->validate([ 'asset_id' => 'required', 'exit_at' => 'required', @@ -66,37 +63,35 @@ class PengembalianController extends Controller 'enter_pic' => 'required', 'enter_warehouse' => 'required', ]); + try { $peminjaman = asset_status::findOrFail($id); $peminjaman['updated_by'] = Auth::user()->fullname; // Menambahkan ID pengguna sebagai updated_by $peminjaman->update($request->all()); - return redirect()->route('pengembalian.index')->with('success', 'Data peminjaman berhasil diperbaharui'); + + return redirect()->route('dashboard.pengembalian.index')->with('success', 'Data peminjaman berhasil diperbaharui'); } catch (\Throwable $th) { - // dd($th->getMessage()); - return redirect()->back()->with('error', 'Data peminjaman gagal diperbaharui'); + // Tampilkan pesan kesalahan untuk debugging + return redirect()->back()->with('error', 'Data peminjaman gagal diperbaharui: ' . $th->getMessage()); } } + // public function update(Request $request, $id) // { - // // dd('oke'); // $request->validate([ // 'asset_id' => 'required', // 'exit_at' => 'required', // 'exit_pic' => 'required', - // 'exit_warehouse' => 'required', // 'enter_at' => 'required', // 'enter_pic' => 'required', // 'enter_warehouse' => 'required', // ]); - // // dd($request); // try { // $peminjaman = asset_status::findOrFail($id); - // // dd($peminjaman); - // // dd($request->all()); + // $peminjaman['updated_by'] = Auth::user()->fullname; // Menambahkan ID pengguna sebagai updated_by // $peminjaman->update($request->all()); // return redirect()->route('pengembalian.index')->with('success', 'Data peminjaman berhasil diperbaharui'); // } catch (\Throwable $th) { - // // dd($th->getMessage()); // return redirect()->back()->with('error', 'Data peminjaman gagal diperbaharui'); // } // } diff --git a/app/Http/Controllers/RoleController.php b/app/Http/Controllers/RoleController.php index c2bb05f..38376e0 100644 --- a/app/Http/Controllers/RoleController.php +++ b/app/Http/Controllers/RoleController.php @@ -4,6 +4,7 @@ namespace App\Http\Controllers; use App\Models\m_role; use Illuminate\Http\Request; +use Illuminate\Support\Facades\Auth; class RoleController extends Controller { @@ -13,7 +14,7 @@ class RoleController extends Controller public function index() { $role = m_role::all(); - return view('MasterData.role.index', compact('role')); + return view('dashboard.Master_Data.Role.index', compact('role')); } /** @@ -34,7 +35,10 @@ class RoleController extends Controller 'description' => 'required', ]); try { + $currentUser = Auth::user(); $validatedData = $request->except('_token'); + $validatedData['created_by'] = $currentUser->fullname; // Menggunakan nama pengguna sebagai created_by + $validatedData['updated_by'] = $currentUser->fullname; // Menggunakan nama pengguna sebagai updated_by m_role::create($validatedData); return redirect()->back()->with('success', 'Data role Berhasil Ditambah.'); } catch (\Throwable $th) { @@ -54,12 +58,12 @@ class RoleController extends Controller /** * Show the form for editing the specified resource. */ - public function edit($id) - { - // dd('oke'); - $role = m_role::find($id); - return view('MasterData.role.edit', compact('role')); - } + // public function edit($id) + // { + // // dd('oke'); + // $role = m_role::find($id); + // return view('dashboard.Master_Data.Role.edit', compact('role')); + // } /** * Update the specified resource in storage. diff --git a/app/Http/Controllers/SettingPlatformController.php b/app/Http/Controllers/SettingPlatformController.php deleted file mode 100644 index cd01056..0000000 --- a/app/Http/Controllers/SettingPlatformController.php +++ /dev/null @@ -1,64 +0,0 @@ - -
-
- Halaman Tambah Role -
-
- -@endsection diff --git a/resources/views/MasterData/role/edit.blade.php b/resources/views/MasterData/role/edit.blade.php deleted file mode 100644 index 03be91a..0000000 --- a/resources/views/MasterData/role/edit.blade.php +++ /dev/null @@ -1,32 +0,0 @@ -@extends('layouts.main') -@section('title', 'Edit Role') -@section('content') -
-
-
-
-
-
Edit Data Role
-
-
-
-
- @csrf - @method('PUT') -
- - - - - -
- -
-
-
-
-@endsection diff --git a/resources/views/MasterData/role/show.blade.php b/resources/views/MasterData/role/show.blade.php deleted file mode 100644 index 8813af3..0000000 --- a/resources/views/MasterData/role/show.blade.php +++ /dev/null @@ -1,11 +0,0 @@ -@extends('layouts.main') -@section('title', 'Detail Role') -@section('content') -
-
-
- Halaman Detail Role -
-
-
-@endsection diff --git a/resources/views/MasterData/user.blade.php b/resources/views/MasterData/user.blade.php deleted file mode 100644 index 402be49..0000000 --- a/resources/views/MasterData/user.blade.php +++ /dev/null @@ -1,139 +0,0 @@ -@extends('layouts.main') -@section('title', 'Manajemen User') -@section('content') - {{--

Halaman Manajement User

--}} -
-
-
-
-
-
Data User
-
- -
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - @php - $noUser = 1; - @endphp - @forelse ($user as $data) - - - - - - - - - - @empty -

Data Kosong

- @endforelse - -
NoNamaEmailNo. HPAlamatDitugaskanAction
NoNamaEmailNo. HPAlamatDitugaskanAction
{{ $noUser++ }}{{ $data->fullname }}{{ $data->email }}{{ isset($data->no_hp) ? $data->no_hp : '-' }}{{ isset($data->address) ? $data->address : '-' }}{{ $data->warehouse->name }} - - - - - - -
-
-
-
-
- - - -@endsection diff --git a/resources/views/MasterData/asset_pdf.blade.php b/resources/views/dashboard/Master_Data/Asset/asset_pdf.blade.php similarity index 100% rename from resources/views/MasterData/asset_pdf.blade.php rename to resources/views/dashboard/Master_Data/Asset/asset_pdf.blade.php diff --git a/resources/views/MasterData/asset.blade.php b/resources/views/dashboard/Master_Data/Asset/index.blade.php similarity index 88% rename from resources/views/MasterData/asset.blade.php rename to resources/views/dashboard/Master_Data/Asset/index.blade.php index ac9654b..b156039 100644 --- a/resources/views/MasterData/asset.blade.php +++ b/resources/views/dashboard/Master_Data/Asset/index.blade.php @@ -13,11 +13,11 @@ data-target="#tambahDataModal"> + Tambah data - + Cetak PDF - Cetak Exel @@ -46,23 +46,27 @@ {{ $data->description }} {{ $data->warehouse->name }} {{ \Carbon\Carbon::parse($data->date)->format('d-m-Y') }} - - {!! QrCode::size(80)->generate(route('asset.show', $data->id)) !!} + + {!! QrCode::size(80)->generate(route('dashboard.asset.show', $data->id)) !!} - - - + - - - +
+ @csrf + @method('DELETE') + +
@endforeach @@ -86,7 +90,7 @@ diff --git a/resources/views/MasterData/role/index.blade.php b/resources/views/dashboard/Master_Data/Role/index.blade.php similarity index 84% rename from resources/views/MasterData/role/index.blade.php rename to resources/views/dashboard/Master_Data/Role/index.blade.php index f410731..5f27acb 100644 --- a/resources/views/MasterData/role/index.blade.php +++ b/resources/views/dashboard/Master_Data/Role/index.blade.php @@ -11,7 +11,7 @@
- + Tambah data + Tambah Data Role
@@ -21,8 +21,8 @@ - - + + @@ -33,7 +33,7 @@ @endphp @foreach ($role as $data_role) - + @endforeach diff --git a/resources/views/dashboard/Master_Data/User/create.blade.php b/resources/views/dashboard/Master_Data/User/create.blade.php new file mode 100644 index 0000000..8d8d8b6 --- /dev/null +++ b/resources/views/dashboard/Master_Data/User/create.blade.php @@ -0,0 +1,61 @@ +@extends('layouts.main') +@section('title', 'Tambah User') +@section('content') +
+
+
+
+
Tambah User
+
+
+
+
+
+ @csrf +
+ + + + + + + + + + + + + + + + + + + + +
+ + +
+
+@endsection diff --git a/resources/views/MasterData/update_user.blade.php b/resources/views/dashboard/Master_Data/User/edit.blade.php similarity index 53% rename from resources/views/MasterData/update_user.blade.php rename to resources/views/dashboard/Master_Data/User/edit.blade.php index bb2c1f3..2ace44b 100644 --- a/resources/views/MasterData/update_user.blade.php +++ b/resources/views/dashboard/Master_Data/User/edit.blade.php @@ -1,41 +1,36 @@ @extends('layouts.main') @section('title', 'Update Data User') @section('content') -
-
-

Detail User

-
-
+
+
+
+
+
Edit User
+
+
+
+
+ @csrf @method('PUT')
- - + + - - + + - - - - + - - - - - + - + + + +
-
NoNama AksesNoNama Role Deskripsi Action
{{ $norole++ }}{{ $norole++ }} {{ $data_role->name }} {{ $data_role->description }} @@ -41,10 +41,16 @@ data-target="#editDataModal{{ $data_role->id }}"> - - - + + @csrf + @method('DELETE') + +
+ + + + + + + + + + + + + + + + + + + + + + + + @php + $noUser = 1; + @endphp + @forelse ($user as $data) + + + + + + + + + + @empty +

Data Kosong

+ @endforelse + +
NoNamaEmailNo. HPAlamatDitugaskanAction
NoNamaEmailNo. HPAlamatDitugaskanAction
{{ $noUser++ }}{{ $data->fullname }}{{ $data->email }}{{ isset($data->no_hp) ? $data->no_hp : '-' }}{{ isset($data->address) ? $data->address : '-' }}{{ $data->warehouse->name }} + + + + + + +
+ @csrf + @method('DELETE') + +
+
+ + + +@endsection diff --git a/resources/views/dashboard/Master_Data/User/show.blade.php b/resources/views/dashboard/Master_Data/User/show.blade.php new file mode 100644 index 0000000..e9ea488 --- /dev/null +++ b/resources/views/dashboard/Master_Data/User/show.blade.php @@ -0,0 +1,77 @@ +@extends('layouts.main') +@section('title', 'Detail User') +@section('content') +
+
+
+
+
Detail User
+
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+
+@endsection diff --git a/resources/views/dashboard/Master_Data/Warehouse/index.blade.php b/resources/views/dashboard/Master_Data/Warehouse/index.blade.php new file mode 100644 index 0000000..cb453f8 --- /dev/null +++ b/resources/views/dashboard/Master_Data/Warehouse/index.blade.php @@ -0,0 +1,141 @@ +@extends('layouts.main') +@section('title', 'Warehouse') +@section('content') +
+
+
+
+
+
Data Warehouse
+
+ +
+
+
+
+ + + + + + + + + + + + @php + $nowarehouses = 1; + @endphp + @foreach ($warehouses as $data) + + + + + + + + @endforeach + +
No.Nama WarehouseDeskripsiAlamatAction
{{ $nowarehouses++ }}{{ $data->name }}{{ $data->description }}{{ $data->address }} + + + +
+ @csrf + @method('DELETE') + +
+
+
+ +
+
+
+ + + + + + @foreach ($warehouses as $data) + + @endforeach +@endsection diff --git a/resources/views/dashboard/Peminjaman/create.blade.php b/resources/views/dashboard/Peminjaman/create.blade.php new file mode 100644 index 0000000..bcfdd6f --- /dev/null +++ b/resources/views/dashboard/Peminjaman/create.blade.php @@ -0,0 +1,47 @@ +@extends('layouts.main') +@section('title', 'Tambah Peminjaman') +@section('content') +
+
+
+
+
Tambah Peminjaman
+
+
+
+
+
+ @csrf +
+ + + + + + + + + + +
+ +
+
+
+@endsection diff --git a/resources/views/dashboard/Peminjaman/edit.blade.php b/resources/views/dashboard/Peminjaman/edit.blade.php new file mode 100644 index 0000000..e19bcbd --- /dev/null +++ b/resources/views/dashboard/Peminjaman/edit.blade.php @@ -0,0 +1,56 @@ +@extends('layouts.main') +@section('title', 'Edit Peminjaman') +@section('content') +
+
+
+
+
Edit Peminjaman
+
+
+
+
+
+ @csrf + @method('PUT') +
+ + + + + + + + + + +
+ +
+
+
+@endsection diff --git a/resources/views/dashboard/Peminjaman/index.blade.php b/resources/views/dashboard/Peminjaman/index.blade.php new file mode 100644 index 0000000..529969c --- /dev/null +++ b/resources/views/dashboard/Peminjaman/index.blade.php @@ -0,0 +1,74 @@ +@extends('layouts.main') +@section('title', 'Peminjaman') +@section('content') +
+
+
+
+
Data Peminjaman
+
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + @php + $no_peminjaman = 1; + @endphp + @foreach ($peminjaman as $data) + + + + + + + + + @endforeach + +
NoNama AssetTgl PeminjamanPJ KeluarAsal GudangAction
NoNama AssetTgl PeminjamanPJ KeluarAsal GudangAction
{{ $no_peminjaman++ }}{{ $data->asset->name }}{{ \Carbon\Carbon::parse($data->exit_at)->format('d-m-Y') }}{{ $data->exit_pic }}{{ $data->warehouse->name }} + + + +
+ @csrf + @method('DELETE') + +
+
+
+
+
+@endsection diff --git a/resources/views/dashboard/update_pengembalian.blade.php b/resources/views/dashboard/Pengembalian/edit.blade.php similarity index 95% rename from resources/views/dashboard/update_pengembalian.blade.php rename to resources/views/dashboard/Pengembalian/edit.blade.php index 5b6e385..81bbdba 100644 --- a/resources/views/dashboard/update_pengembalian.blade.php +++ b/resources/views/dashboard/Pengembalian/edit.blade.php @@ -5,7 +5,8 @@

Data Pengembalian


-
+ @csrf @method('PUT')
@@ -65,7 +66,7 @@
diff --git a/resources/views/dashboard/pengembalian.blade.php b/resources/views/dashboard/Pengembalian/index.blade.php similarity index 83% rename from resources/views/dashboard/pengembalian.blade.php rename to resources/views/dashboard/Pengembalian/index.blade.php index 15a30e3..e1fc616 100644 --- a/resources/views/dashboard/pengembalian.blade.php +++ b/resources/views/dashboard/Pengembalian/index.blade.php @@ -24,20 +24,6 @@ Action - - - No - Nama Asset - Tgl Peinjaman - PJ Peinjaman - Asal Gudang - Tgl Pengembalian - PJ Pengembalian - Tujuan Gudang - Status - Action - - @php $no_peminjaman = 1; @@ -78,7 +64,7 @@ @endif - + diff --git a/resources/views/dashboard/index.blade.php b/resources/views/dashboard/index.blade.php index 821c5c5..8732072 100644 --- a/resources/views/dashboard/index.blade.php +++ b/resources/views/dashboard/index.blade.php @@ -91,6 +91,7 @@
+
diff --git a/resources/views/dashboard/peminjaman.blade.php b/resources/views/dashboard/peminjaman.blade.php deleted file mode 100644 index 16cc9d9..0000000 --- a/resources/views/dashboard/peminjaman.blade.php +++ /dev/null @@ -1,193 +0,0 @@ -@extends('layouts.main') -@section('title', 'Peminjaman') -@section('content') -
- -
-
-
-
-
Data Peminjaman
-
- -
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - @php - $no_peminjaman = 1; - @endphp - @foreach ($peminjaman as $data) - - - - - - - - - @endforeach - -
NoNama AssetTgl PeminjamanPJ KeluarAsal GudangAction
NoNama AssetTgl PeminjamanPJ KeluarAsal GudangAction
{{ $no_peminjaman++ }}{{ $data->asset->name }}{{ \Carbon\Carbon::parse($data->exit_at)->format('d-m-Y') }}{{ $data->exit_pic }}{{ $data->warehouse->name }} - - - - - - -
-
-
-
-
- - - - - - - @foreach ($peminjaman as $data) - - @endforeach -@endsection diff --git a/resources/views/dashboard/transaksi.blade.php b/resources/views/dashboard/transaksi.blade.php deleted file mode 100644 index 1749976..0000000 --- a/resources/views/dashboard/transaksi.blade.php +++ /dev/null @@ -1,5 +0,0 @@ -@extends('layouts.main') -@section('title', 'Transaksi') -@section('content') -

Halaman Transaksi

-@endsection diff --git a/resources/views/dashboard/transaksi/barang_keluar.blade.php b/resources/views/dashboard/transaksi/barang_keluar.blade.php deleted file mode 100644 index e2f062f..0000000 --- a/resources/views/dashboard/transaksi/barang_keluar.blade.php +++ /dev/null @@ -1,248 +0,0 @@ -@extends('layouts.main') -@section('title', 'Barang Keluar') -@section('content') -
-

Tabel Barang Keluar

-
-

Our Outgoing Item Tables are enhanced with the help of the DataTables plugin. This is a powerful tool that - allows you to explore outgoing data in a more interactive and efficient way.

- - + Tambah data - -
-
-
-
-
-
Data Barang Keluar
-
- {{-- --}} -
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - @foreach ($Bkeluar as $data) - - - - - - - - - - @endforeach - -
Nama BarangJumlahTgl KeluarPenerimaAsal GudangKeteranganAction
Nama BarangJumlahTgl KeluarPenerimaAsal GudangKeteranganAction
{{ $data->asset->name }}{{ $data->jumlah }}{{ \Carbon\Carbon::parse($data->tanggal_keluar)->format('d-m-Y') }}{{ $data->penerima_barang }}{{ $data->exit_warehouse }}{{ $data->keterangan }} - - - - - - -
-
- -
-
-
- - - - - - @foreach ($Bkeluar as $data) - - @endforeach -@endsection diff --git a/resources/views/dashboard/transaksi/barang_masuk.blade.php b/resources/views/dashboard/transaksi/barang_masuk.blade.php deleted file mode 100644 index 0384da7..0000000 --- a/resources/views/dashboard/transaksi/barang_masuk.blade.php +++ /dev/null @@ -1,5 +0,0 @@ -@extends('layouts.main') -@section('title', 'Barang Masuk') -@section('content') -

Halaman Barang Masuk

-@endsection diff --git a/resources/views/landing_page/about.html b/resources/views/landing_page/about.html deleted file mode 100644 index edc15d7..0000000 --- a/resources/views/landing_page/about.html +++ /dev/null @@ -1,475 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - Learner Free Bootstrap Template by Untree.co - - - - -
-
-
- -
-
-
-
- - - - - - -
-
-
-
-
-
-

About Us

-
-

Another free template by Untree.co. Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live.

-
- -

Explore courses

- -
- - -
- -
- -
-
- -
- - - - -
-
-
-
- -
-

Become an Instructor

-
- -

Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts. Separated they live.

- -
    -
  • Behind the word Mountains.
  • -
  • Far far away Mountains.
  • -
  • Large language Ocean.
  • -
- -

Get Started

- -
-
-
- Image -
-
- -
-
-
-
- - -
-
-
-
-

Our Team

-

Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts.

-
-
-
-
-
-
Image
-
-

Mina Collins

- Teacher in Math -

Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts.

- -
-
-
-
-
-
Image
-
-

Anderson Matthew

- Teacher in Music -

Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts.

- -
-
-
-
-
-
Image
-
-

Cynthia Misso

- Teacher English -

Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts.

- -
-
-
-
-
-
- - - -
-
-
-
-

We Have Best Education

-

Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts.

-
-
-
-
-
- -

Music Class

-

Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts.

-
-
-
-
- -

Math Class

-

Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts.

-
-
-
-
- -

English Class

-

Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts.

-
-
- - -
-
- -

Reading for Kids

-

Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts.

-
-
-
-
- -

History Class

-

Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts.

-
-
-
-
- -

Music

-

Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts.

-
-
-
-
-
- - - - -
- - -
-
-
- image -
-
-

Why Choose Us

-

Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts.

- -
-
-

- -

- -
-
-
-
- Image -
-
-

Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts.

-

Separated they live in Bookmarksgrove right at the coast of the Semantics, a large language ocean.

-
-
-
-
-
- -
-

- -

-
-
-
-
- Image -
-
-

Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts.

-

Separated they live in Bookmarksgrove right at the coast of the Semantics, a large language ocean.

-
-
-
-
-
-
-

- -

- -
-
-
-
- Image -
-
-

When she reached the first hills of the Italic Mountains, she had a last view back on the skyline of her hometown Bookmarksgrove, the headline of Alphabet Village and the subline of her own road, the Line Lane.

-

Pityful a rethoric question ran over her cheek, then she continued her way.

-
-
- -
-
- -
- -
- -
-
-
-
- - - -
-
-
- Loading... -
-
- - - - - - - - - - - - - - - diff --git a/resources/views/landing_page/contact.html b/resources/views/landing_page/contact.html deleted file mode 100644 index bb31321..0000000 --- a/resources/views/landing_page/contact.html +++ /dev/null @@ -1,307 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - Learner Free Bootstrap Template by Untree.co - - - - -
-
-
- -
-
-
-
- - - - - - -
-
-
-
-
-
-

Contact Us

-
-

Another free template by Untree.co. Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live.

-
- -

Explore courses

- -
- - -
- -
- -
-
- -
- - - - -
-
- -
-
-
- -
- -

Location:

-

43 Raymouth Rd. Baltemoer, London 3910

-
- -
- -

Open Hours:

-

- Sunday-Friday:
- 11:00 AM - 2300 PM -

-
- - - -
- -

Call:

-

+1 1234 55488 55

-
- -
-
-
-
-
-
- -
-
- -
-
- -
-
- -
- -
- -
-
-
-
-
- - -
-
- - - -
-
-
- Loading... -
-
- - - - - - - - - - - - - - - diff --git a/resources/views/landing_page/elements.html b/resources/views/landing_page/elements.html deleted file mode 100644 index ff925d2..0000000 --- a/resources/views/landing_page/elements.html +++ /dev/null @@ -1,434 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - Learner Free Bootstrap Template by Untree.co - - - - -
-
-
- -
-
-
-
- - - - - - -
-
-
-
-
-
-

Elements

-
-

Another free template by Untree.co. Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live.

-
- -

Explore courses

- -
- - -
- -
- -
-
- -
- - - - -
-
-
-
-
-

Accordion

-
-
-

- -

- -
-
- Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts. Separated they live in Bookmarksgrove right at the coast of the Semantics, a large language ocean. -
-
-
- -
-

- -

-
-
- A small river named Duden flows by their place and supplies it with the necessary regelialia. It is a paradisematic country, in which roasted parts of sentences fly into your mouth. -
-
-
-
-

- -

- -
-
- When she reached the first hills of the Italic Mountains, she had a last view back on the skyline of her hometown Bookmarksgrove, the headline of Alphabet Village and the subline of her own road, the Line Lane. Pityful a rethoric question ran over her cheek, then she continued her way. -
-
- -
- -
-
-
-

Gallery

- -
- -
-

Video

- - - - Image - -
- -
-

Check Unordered List

- -
    -
  • Far far away, behind the word
  • -
  • Far from the countries Vokalia
  • -
  • Separated they live in Bookmarksgrove
  • -
- -
- -
-
-
-

Form

-
-
-
-
- - -
-
-
-
- - -
-
-
-
- - - We'll never share your email with anyone else. -
-
- - -
-
- - -
-
- - - - -
-
- -
- -
-
- -
-

Social Icons

- -
- -
-

Slider

- -
-
-
-
-
- - - -
-
-
- Loading... -
-
- - - - - - - - - - - - - - - diff --git a/resources/views/landing_page/gallery.html b/resources/views/landing_page/gallery.html deleted file mode 100644 index 037a8d3..0000000 --- a/resources/views/landing_page/gallery.html +++ /dev/null @@ -1,310 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - Learner Free Bootstrap Template by Untree.co - - - - -
-
-
- -
-
-
-
- - - - - - -
-
-
-
-
-
-

Gallery

-
-

Another free template by Untree.co. Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live.

-
- -

Explore courses

- -
- - -
- -
- -
-
- -
- - - - - - - - -
-
-
- Loading... -
-
- - - - - - - - - - - - - - - diff --git a/resources/views/landing_page/index.blade.php b/resources/views/landing_page/index.blade.php deleted file mode 100644 index 8b13789..0000000 --- a/resources/views/landing_page/index.blade.php +++ /dev/null @@ -1 +0,0 @@ - diff --git a/resources/views/landing_page/layouts/footer.blade.php b/resources/views/landing_page/layouts/footer.blade.php deleted file mode 100644 index d777f74..0000000 --- a/resources/views/landing_page/layouts/footer.blade.php +++ /dev/null @@ -1,88 +0,0 @@ -
- -
-
-
-

About Us.

-

Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, - there live the blind texts.

-
-
-

Connect

- -
-
- -
-
-

Projects

- -
-
- -
-
-

Gallery

- -
-
- - -
-
-

Contact

-
43 Raymouth Rd. Baltemoer, London 3910
- -
-
- -
- -
-
-

Copyright © - . All Rights Reserved. — Designed with love by Untree.co Distributed By ThemeWagon - -

-
-
diff --git a/resources/views/landing_page/layouts/head_navbar.blade.php b/resources/views/landing_page/layouts/head_navbar.blade.php deleted file mode 100644 index 55d355b..0000000 --- a/resources/views/landing_page/layouts/head_navbar.blade.php +++ /dev/null @@ -1,27 +0,0 @@ - diff --git a/resources/views/landing_page/layouts/link.blade.php b/resources/views/landing_page/layouts/link.blade.php deleted file mode 100644 index c0345b4..0000000 --- a/resources/views/landing_page/layouts/link.blade.php +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - diff --git a/resources/views/landing_page/layouts/main.blade.php b/resources/views/landing_page/layouts/main.blade.php deleted file mode 100644 index fad5c81..0000000 --- a/resources/views/landing_page/layouts/main.blade.php +++ /dev/null @@ -1,853 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - SIOPAS IVENTORY - - - -
-
-
- -
-
-
-
- -
-
-
-
-
-
- Watch the video -

Inventory - Management is the Backbone of Efficiency

-

Explore courses

-
-
-
-
-
-
- - - - -
-
-
-
- -
-

Become an Instructor

-
- -

Far far away, behind the word mountains, far from the - countries Vokalia and Consonantia, there live the blind texts. Separated they live.

- -
    -
  • Behind the word Mountains.
  • -
  • Far far away Mountains.
  • -
  • Large language Ocean.
  • -
- -

Get - Started

- -
-
-
- Image -
-
- -
-
-
-
- - - -
-
-
-
-

We Have Best Education

-

Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there - live the blind texts.

-
-
-
-
-
- -

Music Class

-

Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, - there live the blind texts.

-
-
-
-
- -

Math Class

-

Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, - there live the blind texts.

-
-
-
-
- -

English Class

-

Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, - there live the blind texts.

-
-
- - -
-
- -

Reading for Kids

-

Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, - there live the blind texts.

-
-
-
-
- -

History Class

-

Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, - there live the blind texts.

-
-
-
-
- -

Music

-

Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, - there live the blind texts.

-
-
-
-
-
- - -
-
-
-
-

The Right Course For You

-

Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there - live the blind texts.

-
-
-
-
-
- Image -
-
-
43 - lesson
-
4.8
-
-

Asset Management Program 1

-

Lorem ipsum dolor sit amet once is consectetur adipisicing elit optio. -

-
-
$87.00
- -
-
-
-
-
-
- Image -
-
-
43 - lesson
-
4.8
-
-

Asset Management Program 2

-

Lorem ipsum dolor sit amet once is consectetur adipisicing elit optio. -

-
-
$93.00
- -
-
-
-
-
-
- Image -
-
-
43 - lesson
-
4.8
-
-

Asset Management Program 3

-

Lorem ipsum dolor sit amet once is consectetur adipisicing elit optio. -

-
-
$65.00
- -
-
-
-
-
-
-
- -
-
-
-
-

Education for Tomorrow's - Leaders

-

Far far away, behind the - word mountains, far from the countries Vokalia and Consonantia, there live the blind texts.

-

Enroll - Now

-
-
-
-
- -
-
-
-
-

About Us

-

Far far away, behind the word mountains, far from the - countries Vokalia and Consonantia, there live the blind texts. Separated they live in - Bookmarksgrove right at the coast of the Semantics, a large language ocean.

-
    -
  • Separated they live
  • -
  • Bookmarksgrove right at the coast
  • -
  • large language ocean
  • -
- -
-
- 0+ - No. Students -
-
- 0 - No. Teachers -
-
- 0 - No. Awards -
-
- -

- Admission - Learn More -

-
-
-
- - - Image - -
-
-
-
- -
-
-
-
-

School News

-

Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there - live the blind texts.

-
-
-
-
-
-
- Image -
-
-

Education for Tomorrow's Leaders

-
June 22, 2020 - Admin -
-

Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, - there live the blind texts.

-

Learn More

-
-
-
-
-
-
- Image -
-
-

Enroll Your Kids This Summer to get 30% off

-
June 22, 2020 - Admin -
-

Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, - there live the blind texts.

-

Learn More

-
-
-
-
-
-
- - -
-
-
-
-

Pricing

-

Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there - live the blind texts.

-
-
-
-
-
- -
- -

Starter

-
$50.99/month
-

Far far away, behind the word mountains, far from the countries Vokalia - and Consonantia, there live the blind texts.

- -

Get Started

-
-
-
-
-
- -
- -

Business

-
$99.99/month
-

Far far away, behind the word mountains, far from the countries Vokalia - and Consonantia, there live the blind texts.

- -

Get Started

-
-
-
-
-
- -
- -

Premium

-
$199.99/month
-

Far far away, behind the word mountains, far from the countries Vokalia - and Consonantia, there live the blind texts.

- -

Get Started

-
-
-
-
-
-
- - -
-
-
-
- -

Testimonials

- - -
-
-
-
- - -
- - -
-
-
- image -
-
-

Why Choose Us

-

Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there - live the blind texts.

- -
-
-

- -

- -
-
-
-
- Image -
-
-

Far far away, behind the word mountains, far from the countries Vokalia - and Consonantia, there live the blind texts.

-

Separated they live in Bookmarksgrove right at the coast of the - Semantics, a large language ocean.

-
-
-
-
-
- -
-

- -

-
-
-
-
- Image -
-
-

Far far away, behind the word mountains, far from the countries Vokalia - and Consonantia, there live the blind texts.

-

Separated they live in Bookmarksgrove right at the coast of the - Semantics, a large language ocean.

-
-
-
-
-
-
-

- -

- -
-
-
-
- Image -
-
-

When she reached the first hills of the Italic Mountains, she had a last - view back on the skyline of her hometown Bookmarksgrove, the headline of - Alphabet Village and the subline of her own road, the Line Lane.

-

Pityful a rethoric question ran over her cheek, then she continued her - way.

-
-
- -
-
- -
- -
- -
-
-
-
- - - -
-
-
- Loading... -
-
- - - - - - - - - - - - - - diff --git a/resources/views/landing_page/layouts/navbar.blade.php b/resources/views/landing_page/layouts/navbar.blade.php deleted file mode 100644 index 9f705b3..0000000 --- a/resources/views/landing_page/layouts/navbar.blade.php +++ /dev/null @@ -1,40 +0,0 @@ - diff --git a/resources/views/landing_page/layouts/script.blade.php b/resources/views/landing_page/layouts/script.blade.php deleted file mode 100644 index c48413e..0000000 --- a/resources/views/landing_page/layouts/script.blade.php +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/resources/views/landing_page/login.blade.php b/resources/views/landing_page/login.blade.php deleted file mode 100644 index 1f1ae16..0000000 --- a/resources/views/landing_page/login.blade.php +++ /dev/null @@ -1,5 +0,0 @@ -@extends('landing_page.layouts.main') -@section('title', 'Login Siopas') -@section('content') - Halaman login -@endsection diff --git a/resources/views/landing_page/news.html b/resources/views/landing_page/news.html deleted file mode 100644 index b21371d..0000000 --- a/resources/views/landing_page/news.html +++ /dev/null @@ -1,337 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - Learner Free Bootstrap Template by Untree.co - - - - -
-
-
- -
-
-
-
- - - - - - -
-
-
-
-
-
-

News

-
-

Another free template by Untree.co. Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live.

-
- -

Explore courses

- -
- - -
- -
- -
-
- -
- - - - -
-
-
-
-
-
- Image -
-
-

Education for Tomorrow's Leaders

-
June 22, 2020 Untree.co
-

Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts.

-
-
-
-
-
-
- Image -
-
-

Enroll Your Kids This Summer to get 30% off

-
June 22, 2020 Untree.co
-

Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts.

-
-
-
- -
-
-
- Image -
-
-

Education for Tomorrow's Leaders

-
June 22, 2020 Untree.co
-

Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts.

-
-
-
-
-
-
- Image -
-
-

Enroll Your Kids This Summer to get 30% off

-
June 22, 2020 Untree.co
-

Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts.

-
-
-
- - -
-
-
- Image -
-
-

Education for Tomorrow's Leaders

-
June 22, 2020 Untree.co
-

Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts.

-
-
-
-
-
-
- Image -
-
-

Enroll Your Kids This Summer to get 30% off

-
June 22, 2020 Untree.co
-

Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts.

-
-
-
- -
- -
-
- -
-
-
-
- - - -
-
-
- Loading... -
-
- - - - - - - - - - - - - - - diff --git a/resources/views/landing_page/register.html b/resources/views/landing_page/register.html deleted file mode 100644 index 2be948d..0000000 --- a/resources/views/landing_page/register.html +++ /dev/null @@ -1,274 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - Learner Free Bootstrap Template by Untree.co - - - - -
-
-
- -
-
-
-
- - - - - - -
-
-
-
-
-
-

Register

- -
-
-
-
-
- -
- - - - -
-
- -
-
-
-
-
- -
-
- -
-
- -
-
- -
- -
- -
- -
- -
-
-
-
-
- - -
-
- - - -
-
-
- Loading... -
-
- - - - - - - - - - - - - - - diff --git a/resources/views/landing_page/staff.html b/resources/views/landing_page/staff.html deleted file mode 100644 index 51b8321..0000000 --- a/resources/views/landing_page/staff.html +++ /dev/null @@ -1,293 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - Learner Free Bootstrap Template by Untree.co - - - - -
-
-
- -
-
-
-
- - - - - - -
-
-
-
-
-
-

School Staff

-
-

Another free template by Untree.co. Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live.

-
- -

Explore courses

- -
- - -
- -
- -
-
- -
- -
-
- -
-
-
-
Image
-
-

Mina Collins

- Teacher in Math -

Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts.

- -
-
-
-
-
-
Image
-
-

Anderson Matthew

- Teacher in Music -

Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts.

- -
-
-
-
-
-
Image
-
-

Cynthia Misso

- Teacher English -

Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts.

- -
-
-
-
-
-
- - - -
-
-
- Loading... -
-
- - - - - - - - - - - - - - - diff --git a/resources/views/layouts/app.blade.php b/resources/views/layouts/app.blade.php deleted file mode 100644 index 9069c10..0000000 --- a/resources/views/layouts/app.blade.php +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - {{ config('app.name', 'Laravel') }} - - - - - - - @vite(['resources/css/app.css', 'resources/js/app.js']) - - -
- @include('layouts.navigation') - - - @if (isset($header)) -
-
- {{ $header }} -
-
- @endif - - -
- {{ $slot }} -
-
- - diff --git a/resources/views/layouts/main.blade.php b/resources/views/layouts/main.blade.php index e1f737e..dd80dc3 100644 --- a/resources/views/layouts/main.blade.php +++ b/resources/views/layouts/main.blade.php @@ -27,23 +27,23 @@ @include('layouts.navbar') - - - - @if (session()->has('success')) -
- {{ session()->get('success') }} -
- @elseif(session()->has('error')) -
- X {{ session()->get('error') }} -
- @endif - @yield('content') +
+ + @if (session()->has('success')) +
+ {{ session()->get('success') }} +
+ @elseif(session()->has('error')) +
+ X {{ session()->get('error') }} +
+ @endif + + + @yield('content') +
- -
- - - - - + diff --git a/resources/views/layouts/sidebar.blade.php b/resources/views/layouts/sidebar.blade.php index 841df6b..133ac2b 100644 --- a/resources/views/layouts/sidebar.blade.php +++ b/resources/views/layouts/sidebar.blade.php @@ -26,7 +26,7 @@ @@ -46,17 +46,17 @@ diff --git a/routes/web.php b/routes/web.php index 4712881..e856b92 100644 --- a/routes/web.php +++ b/routes/web.php @@ -52,44 +52,64 @@ Route::prefix('dashboard')->name('dashboard.')->middleware(['auth'])->group(func return view('dashboard.index', compact('jumlahAsset', 'jumlahPeminjaman', 'jumlahPengembalian', 'reminder')); }); + //Halaman Warehouse + Route::controller(WarehouseController::class)->group(function () { + Route::get('warehouse', 'index')->name('warehouse.index'); + Route::post('warehouse/store', 'store')->name('warehouse.store'); + Route::put('warehouse/{id}', 'update')->name('warehouse.update'); + Route::delete('warehouse/delete/{id}', 'destroy')->name('warehouse.destroy'); + }); + //Halaman Role Route::controller(RoleController::class)->group(function () { Route::get('role', 'index')->name('role.index'); Route::post('role/store', 'store')->name('role.store'); Route::put('role/{id}', 'update')->name('role.update'); - Route::get('role/delete/{id}', 'destroy')->name('role.destroy'); + Route::delete('role/delete/{id}', 'destroy')->name('role.destroy'); }); + //Halaman Asset + Route::controller(M_assetController::class)->group(function () { + Route::get('asset', 'index')->name('asset.index'); + Route::post('asset/store', 'store')->name('asset.store'); + Route::get('asset/{id}', 'show')->name('asset.show'); + Route::put('asset/{id}', 'update')->name('asset.update'); + Route::delete('asset/delete/{id}', 'destroy')->name('asset.destroy'); + Route::get('/assetcetak_pdf', [M_assetController::class, 'cetakpdf'])->name('assetcetakpdf.cetakpdf'); + Route::get('/assetexport', [M_assetController::class, 'export'])->name('assetexport.export'); + }); + + //Halaman User + Route::controller(M_userController::class)->group(function () { + Route::get('user', 'index')->name('user.index'); + Route::get('user/create', 'create')->name('user.create'); + Route::post('user/store', 'store')->name('user.store'); + Route::get('user/{id}', 'show')->name('user.show'); + Route::get('user/{id}/edit', 'edit')->name('user.edit'); + Route::put('user/{id}', 'update')->name('user.update'); + Route::delete('user/delete/{id}', 'destroy')->name('user.destroy'); + }); //Halaman Peminjaman Route::controller(PeminjamanController::class)->group(function () { Route::get('peminjaman', 'index')->name('peminjaman.index'); + Route::get('peminjaman/create', 'create')->name('peminjaman.create'); Route::post('peminjaman/store', 'store')->name('peminjaman.store'); + Route::get('peminjaman/{id}/edit', 'edit')->name('peminjaman.edit'); Route::put('peminjaman/{id}', 'update')->name('peminjaman.update'); Route::delete('peminjaman/delete/{id}', 'destroy')->name('peminjaman.destroy'); }); -}); -Route::group(['prefix' => 'dashboard'], function () { //Halaman Pengembalian - Route::middleware('auth')->resource('/pengembalian', PengembalianController::class); - - //Halaman Pengadaan - Route::middleware('auth')->resource('/pengadaan', PengadaanController::class); - - //Halaman Manajemen Asset - Route::middleware('auth')->resource('/asset', M_assetController::class); - Route::get('/hapusAsset/{id}', [M_assetController::class, 'destroy'])->name('hapusAsset.destroy'); - Route::get('/assetcetak_pdf', [M_assetController::class, 'cetakpdf'])->name('assetcetakpdf.cetakpdf'); - Route::get('/assetexport', [M_assetController::class, 'export'])->name('assetexport.export'); - - //Halaman Manajemen User - Route::middleware('auth')->resource('/user', M_userController::class); - Route::get('/hapusUser/{id}', [M_userController::class, 'destroy'])->name('hapusUser.destroy'); - - //Halaman Warehouse - Route::middleware('auth')->resource('/warehouse', WarehouseController::class); - Route::get('/hapuswarehouse/{id}', [WarehouseController::class, 'destroy'])->name('hapuswarehouse.destroy'); + Route::controller(PengembalianController::class)->group(function () { + Route::get('pengembalian', 'index')->name('pengembalian.index'); + Route::get('pengembalian/create', 'create')->name('pengembalian.create'); + Route::post('pengembalian/store', 'store')->name('pengembalian.store'); + Route::get('pengembalian/{id}', 'show')->name('pengembalian.show'); + Route::get('pengembalian/{id}/edit', 'edit')->name('pengembalian.edit'); + Route::put('pengembalian/{id}', 'update')->name('pengembalian.update'); + Route::delete('pengembalian/delete/{id}', 'destroy')->name('pengembalian.destroy'); + }); }); require __DIR__ . '/auth.php';