Browse Source

update pagenation all page

master
Gunawan19621 11 months ago
parent
commit
e38f66854b
  1. 40
      app/Http/Controllers/CustomerController.php
  2. 47
      app/Http/Controllers/DisposalController.php
  3. 56
      app/Http/Controllers/HistoryController.php
  4. 41
      app/Http/Controllers/KondisiPetiController.php
  5. 44
      app/Http/Controllers/M_userController.php
  6. 2
      app/Http/Controllers/PeminjamanController.php
  7. 77
      app/Http/Controllers/RecycleDataController.php
  8. 37
      app/Http/Controllers/RoleController.php
  9. 156
      app/Http/Controllers/TransaksiKeluarMasukController.php
  10. 61
      app/Http/Controllers/TransferController.php
  11. 40
      app/Http/Controllers/TypePetiController.php
  12. 41
      app/Http/Controllers/WarehouseController.php
  13. 53
      database/seeders/AssetStatusSeeder.php
  14. 25
      database/seeders/CustomerSeeder.php
  15. 18
      database/seeders/DatabaseSeeder.php
  16. 30
      database/seeders/DisposalSeeder.php
  17. 10
      database/seeders/Kondisi_PetiSeeder.php
  18. 118
      database/seeders/PetiSeeder.php
  19. 10
      database/seeders/RoleSeeder.php
  20. 48
      database/seeders/TipePetiSeeder.php
  21. 29
      database/seeders/TransferSeeder.php
  22. 32
      database/seeders/Type_Peti.php
  23. 28
      database/seeders/UserSeeder.php
  24. 19
      database/seeders/WarehouseSeeder.php
  25. BIN
      public/assets/img/398.jpg
  26. BIN
      public/assets/img/8487305.jpg
  27. BIN
      public/assets/img/default-profile.png
  28. BIN
      public/assets/img/fotocewe.png
  29. BIN
      public/assets/img/fotocowo.png
  30. BIN
      public/assets/img/istw_black&white.jpg
  31. BIN
      public/assets/img/istw_grey.png
  32. BIN
      public/assets/img/istw_red.jpg
  33. BIN
      public/assets/img/logo_istw.png
  34. BIN
      public/assets/img/profile2.jpg
  35. 1
      public/assets/img/undraw_posting_photo.svg
  36. 38
      public/assets/img/undraw_profile.svg
  37. 38
      public/assets/img/undraw_profile_1.svg
  38. 44
      public/assets/img/undraw_profile_2.svg
  39. 47
      public/assets/img/undraw_profile_3.svg
  40. 39
      public/assets/img/undraw_rocket.svg
  41. 82
      resources/views/dashboard/Disposal/index.blade.php
  42. 5
      resources/views/dashboard/Disposal/show.blade.php
  43. 2
      resources/views/dashboard/History/Peminjaman/index.blade.php
  44. 87
      resources/views/dashboard/History/Transfer/index.blade.php
  45. 87
      resources/views/dashboard/Master_Data/Customer/index.blade.php
  46. 92
      resources/views/dashboard/Master_Data/Manajemen_Peti/Kondisi_Peti/index.blade.php
  47. 9
      resources/views/dashboard/Master_Data/Manajemen_Peti/Peti/all_print.blade.php
  48. 30
      resources/views/dashboard/Master_Data/Manajemen_Peti/Peti/index.blade.php
  49. 85
      resources/views/dashboard/Master_Data/Manajemen_Peti/Type_peti/index.blade.php
  50. 196
      resources/views/dashboard/Master_Data/Recycle_Data/index.blade.php
  51. 59
      resources/views/dashboard/Master_Data/Report/Customer/index.blade.php
  52. 53
      resources/views/dashboard/Master_Data/Report/Kondisi_Peti/index.blade.php
  53. 55
      resources/views/dashboard/Master_Data/Report/Tipe_Peti/index.blade.php
  54. 55
      resources/views/dashboard/Master_Data/Report/Warehouse/index.blade.php
  55. 86
      resources/views/dashboard/Master_Data/Role/index.blade.php
  56. 82
      resources/views/dashboard/Master_Data/User/index.blade.php
  57. 90
      resources/views/dashboard/Master_Data/Warehouse/index.blade.php
  58. 17
      resources/views/dashboard/Peminjaman/create.blade.php
  59. 3
      resources/views/dashboard/Peminjaman/edit.blade.php
  60. 7
      resources/views/dashboard/Peminjaman/index.blade.php
  61. 4
      resources/views/dashboard/Pengembalian/index.blade.php
  62. 77
      resources/views/dashboard/Transaksi/edit.blade.php
  63. 102
      resources/views/dashboard/Transaksi/index.blade.php
  64. 88
      resources/views/dashboard/Transfer/index.blade.php
  65. 67
      resources/views/dashboard/index.blade.php
  66. 2
      resources/views/layouts/components/alert-prompt.blade.php
  67. 4
      resources/views/layouts/link.blade.php
  68. 8
      resources/views/layouts/main.blade.php
  69. 8
      resources/views/layouts/script.blade.php
  70. 34
      resources/views/layouts/sidebar.blade.php
  71. 6
      routes/web.php

40
app/Http/Controllers/CustomerController.php

@ -5,6 +5,7 @@ namespace App\Http\Controllers;
use App\Models\Customer;
use Illuminate\Http\Request;
use App\Imports\CustomerImport;
use Illuminate\Support\Collection;
use Illuminate\Support\Facades\Auth;
use Maatwebsite\Excel\Facades\Excel;
use App\Http\Requests\ValidasiCreateCustomer;
@ -15,12 +16,47 @@ class CustomerController extends Controller
/**
* Display a listing of the resource.
*/
public function index()
public function index(Request $request)
{
$perPage = $request->input('perPage', 5);
$query = Customer::orderBy('created_at', 'desc');
// Add search logic similar to the Transfer index controller
$search = $request->input('search') ?? '';
if ($search) {
$query->where(function ($q) use ($search) {
$q->where('name', 'like', "%$search%")
->orWhere('code_customer', 'like', "%$search%")
->orWhere('lot_no', 'like', "%$search%")
->orWhere('no_tlp', 'like', "%$search%")
->orWhere('address', 'like', "%$search%");
});
}
if ($perPage == 'Semua') {
$chunkSize = 100;
$customers = new Collection();
$currentPage = 1;
$query->chunk($chunkSize, function ($customerChunk) use ($customers, &$currentPage) {
foreach ($customerChunk as $customer) {
$customer->setAttribute('i', ($currentPage - 1) * $customerChunk->perPage() + 1);
$customers->push($customer);
$currentPage++;
}
});
} else {
$customers = $query->paginate($perPage);
}
$data = [
'customer' => Customer::orderBy('created_at', 'desc')->get(),
'customers' => $customers,
'i' => ($customers->currentPage() - 1) * $customers->perPage() + 1,
'search' => $search,
'active' => 'menu-customer',
];
return view('dashboard.Master_Data.Customer.index', $data);
}

47
app/Http/Controllers/DisposalController.php

@ -9,18 +9,57 @@ use App\Models\m_warehouse;
use Illuminate\Http\Request;
use Symfony\Component\Uid\Uuid;
use Illuminate\Http\JsonResponse;
use Illuminate\Support\Collection;
use Illuminate\Support\Facades\Auth;
use App\Http\Requests\Disposal\ValidasiCreateDisposal;
use App\Http\Requests\Disposal\ValidasiUpdateDisposal;
class DisposalController extends Controller
{
public function index()
// Halamam index
public function index(Request $request)
{
$perPage = $request->input('perPage', 5);
$query = Disposal::where('status_disposal', 'INAKTIF')
->orderBy('created_at', 'desc');
// Add search logic similar to the Transfer index controller
$search = $request->input('search') ?? '';
if ($search) {
$query->where(function ($q) use ($search) {
$q->where('fix_lot', 'like', "%$search%")
->orWhereHas('peti', function ($petiQuery) use ($search) {
$petiQuery->where('fix_lot', 'like', "%$search%");
})
->orWhereHas('customer', function ($customerQuery) use ($search) {
$customerQuery->where('name', 'like', "%$search%");
})
->orWhere('date_disposal', 'like', "%$search%")
->orWhere('description', 'like', "%$search%");
});
}
if ($perPage == 'Semua') {
$chunkSize = 100;
$disposals = new Collection();
$currentPage = 1;
$query->chunk($chunkSize, function ($disposalChunk) use ($disposals, &$currentPage) {
foreach ($disposalChunk as $disposal) {
$disposal->setAttribute('i', ($currentPage - 1) * $disposalChunk->perPage() + 1);
$disposals->push($disposal);
$currentPage++;
}
});
} else {
$disposals = $query->paginate($perPage);
}
$data = [
'disposal' => Disposal::where('status_disposal', 'INAKTIF')
->orderBy('created_at', 'desc')
->get(),
'disposals' => $disposals,
'i' => ($disposals->currentPage() - 1) * $disposals->perPage() + 1,
'search' => $search,
'active' => 'menu-disposal',
];

56
app/Http/Controllers/HistoryController.php

@ -217,12 +217,64 @@ class HistoryController extends Controller
}
// Halaman index history transfer
public function historyTransfer()
public function historyTransfer(Request $request)
{
$perPage = $request->input('perPage', 5);
$query = Transfer::orderBy('created_at', 'desc');
// Add search logic similar to the Peti index controller
$search = $request->input('search') ?? '';
if ($search) {
$query->where(function ($q) use ($search) {
$q->where('name_customer', 'like', "%$search%")
->orWhereHas('peti', function ($petiQuery) use ($search) {
$petiQuery->where('fix_lot', 'like', "%$search%");
})
->orWhereHas('customer', function ($customerQuery) use ($search) {
$customerQuery->where('name', 'like', "%$search%");
})
->orWhereHas('sourceWarehouse', function ($sourceWarehouseQuery) use ($search) {
$sourceWarehouseQuery->where('name', 'like', "%$search%");
})
->orWhereHas('destinationWarehouse', function ($destinationWarehouseQuery) use ($search) {
$destinationWarehouseQuery->where('name', 'like', "%$search%");
})
->orWhere(function ($dateQuery) use ($search) {
try {
$formattedDate = \Carbon\Carbon::createFromFormat('d-m-Y', $search)->format('Y-m-d');
$dateQuery->whereDate('date', $formattedDate);
} catch (\Exception $e) {
Log::error('Error parsing date: ' . $e->getMessage());
}
});
// ->orWhere('date', 'like', "%$search%");
});
}
if ($perPage == 'Semua') {
$chunkSize = 100;
$transfers = new Collection();
$currentPage = 1;
$query->chunk($chunkSize, function ($transferChunk) use ($transfers, &$currentPage) {
foreach ($transferChunk as $transfer) {
$transfer->setAttribute('i', ($currentPage - 1) * $transferChunk->perPage() + 1);
$transfers->push($transfer);
$currentPage++;
}
});
} else {
$transfers = $query->paginate($perPage);
}
$data = [
'transfer' => Transfer::withTrashed()->orderBy('created_at', 'desc')->get(),
'transfer' => $transfers,
'i' => ($transfers->currentPage() - 1) * $transfers->perPage() + 1,
'search' => $search,
'active' => 'history-transfer',
];
return view('dashboard.History.Transfer.index', $data);
}
}

41
app/Http/Controllers/KondisiPetiController.php

@ -4,20 +4,53 @@ namespace App\Http\Controllers;
use App\Models\Kondisi_Peti;
use Illuminate\Http\Request;
use App\Imports\KondisiPetiImport;
use Illuminate\Support\Collection;
use Illuminate\Support\Facades\Auth;
use Maatwebsite\Excel\Facades\Excel;
use App\Http\Requests\ValidasiCreateKondisiPeti;
use App\Http\Requests\ValidasiUpdateKondisiPeti;
use App\Imports\KondisiPetiImport;
class KondisiPetiController extends Controller
{
public function index()
public function index(Request $request)
{
$perPage = $request->input('perPage', 5);
$query = Kondisi_Peti::orderBy('created_at', 'desc');
// Add search logic similar to the Transfer index controller
$search = $request->input('search') ?? '';
if ($search) {
$query->where(function ($q) use ($search) {
$q->where('nama_kondisi', 'like', "%$search%")
->orWhere('deskripsi_kondisi', 'like', "%$search%");
});
}
if ($perPage == 'Semua') {
$chunkSize = 100;
$kondisiPetis = new Collection();
$currentPage = 1;
$query->chunk($chunkSize, function ($kondisiPetiChunk) use ($kondisiPetis, &$currentPage) {
foreach ($kondisiPetiChunk as $kondisiPeti) {
$kondisiPeti->setAttribute('i', ($currentPage - 1) * $kondisiPetiChunk->perPage() + 1);
$kondisiPetis->push($kondisiPeti);
$currentPage++;
}
});
} else {
$kondisiPetis = $query->paginate($perPage);
}
$data = [
'kondisiPeti' => Kondisi_Peti::orderBy('created_at', 'desc')->get(),
'active' => 'menu-kondisipeti'
'kondisiPetis' => $kondisiPetis,
'i' => ($kondisiPetis->currentPage() - 1) * $kondisiPetis->perPage() + 1,
'search' => $search,
'active' => 'menu-kondisipeti',
];
return view('dashboard.Master_Data.Manajemen_Peti.Kondisi_Peti.index', $data);
}

44
app/Http/Controllers/M_userController.php

@ -6,6 +6,7 @@ use App\Models\User;
use App\Models\m_role;
use App\Models\m_warehouse;
use Illuminate\Http\Request;
use Illuminate\Support\Collection;
use Illuminate\Support\Facades\Auth;
use App\Http\Requests\ValidasiCreateUser;
@ -14,14 +15,49 @@ class M_userController extends Controller
/**
* Display a listing of the resource.
*/
public function index()
public function index(Request $request)
{
$perPage = $request->input('perPage', 5);
$query = User::orderBy('created_at', 'desc');
// Add search logic similar to the Transfer index controller
$search = $request->input('search') ?? '';
if ($search) {
$query->where(function ($q) use ($search) {
$q->where('fullname', 'like', "%$search%")
->orWhere('email', 'like', "%$search%")
->orWhere('no_hp', 'like', "%$search%")
->orWhere('address', 'like', "%$search%")
->orWhereHas('warehouse', function ($warehouseQuery) use ($search) {
$warehouseQuery->where('name', 'like', "%$search%");
});
});
}
if ($perPage == 'Semua') {
$chunkSize = 100;
$users = new Collection();
$currentPage = 1;
$query->chunk($chunkSize, function ($userChunk) use ($users, &$currentPage) {
foreach ($userChunk as $user) {
$user->setAttribute('i', ($currentPage - 1) * $userChunk->perPage() + 1);
$users->push($user);
$currentPage++;
}
});
} else {
$users = $query->paginate($perPage);
}
$data = [
'user' => User::orderBy('created_at', 'desc')->get(),
'warehouse' => m_warehouse::get(),
'role' => m_role::get(),
'users' => $users,
'i' => ($users->currentPage() - 1) * $users->perPage() + 1,
'search' => $search,
'active' => 'menu-user',
];
return view('dashboard.Master_Data.User.index', $data);
}

2
app/Http/Controllers/PeminjamanController.php

@ -215,7 +215,7 @@ class PeminjamanController extends Controller
'warehouse' => m_warehouse::get(),
'kondisiPeti' => Kondisi_Peti::get(),
'customer' => Customer::get(),
'active' => 'menu-pengembalian',
'active' => 'menu-peminjaman',
];
return view('dashboard.Peminjaman.pengembalian', $data);
}

77
app/Http/Controllers/RecycleDataController.php

@ -1,77 +0,0 @@
<?php
namespace App\Http\Controllers;
use App\Models\Peti;
use App\Models\Customer;
use Illuminate\Http\Request;
class RecycleDataController extends Controller
{
/**
* Display a listing of the resource.
*/
public function index()
{
$peti = Peti::onlyTrashed()->get();
$customer = Customer::onlyTrashed()->get();
$data = [
'peti' => Peti::onlyTrashed()->get(),
'customer' => Customer::onlyTrashed()->get(),
'active' => 'menu-Recycle_Data',
];
return view('dashboard.Master_Data.Recycle_Data.index', $data);
}
public function pulihkanData(Request $request, $model, $id)
{
$data = null;
switch ($model) {
case 'peti':
$data = Peti::withTrashed()->find($id);
break;
case 'customer':
$data = Customer::withTrashed()->find($id);
break;
// Add more cases for other models if needed
default:
return redirect()->back()->with('error', 'Model tidak valid.');
}
if ($data) {
$data->restore();
return redirect()->back()->with('success', "Data $model berhasil dipulihkan.");
} else {
return redirect()->back()->with('error', 'Data tidak ditemukan.');
}
}
public function hapusPermanenData($model, $id)
{
$data = null;
switch ($model) {
case 'peti':
$data = Peti::withTrashed()->find($id);
break;
case 'customer':
$data = Customer::withTrashed()->find($id);
break;
// Add more cases for other models if needed
default:
return redirect()->back()->with('error', 'Model tidak valid.');
}
if ($data) {
$data->forceDelete();
return redirect()->back()->with('success', "Data $model berhasil dihapus permanen.");
} else {
return redirect()->back()->with('error', 'Data tidak ditemukan.');
}
}
}

37
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\Collection;
use Illuminate\Support\Facades\Auth;
use App\Http\Requests\ValidasiCreateRole;
use App\Http\Requests\ValidasiUpdateRole;
@ -13,12 +14,44 @@ class RoleController extends Controller
/**
* Display a listing of the resource.
*/
public function index()
public function index(Request $request)
{
$perPage = $request->input('perPage', 5);
$query = m_role::orderBy('created_at', 'desc');
// Add search logic similar to the Transfer index controller
$search = $request->input('search') ?? '';
if ($search) {
$query->where(function ($q) use ($search) {
$q->where('name', 'like', "%$search%")
->orWhere('description', 'like', "%$search%");
});
}
if ($perPage == 'Semua') {
$chunkSize = 100;
$roles = new Collection();
$currentPage = 1;
$query->chunk($chunkSize, function ($roleChunk) use ($roles, &$currentPage) {
foreach ($roleChunk as $role) {
$role->setAttribute('i', ($currentPage - 1) * $roleChunk->perPage() + 1);
$roles->push($role);
$currentPage++;
}
});
} else {
$roles = $query->paginate($perPage);
}
$data = [
'role' => m_role::orderBy('created_at', 'desc')->get(),
'roles' => $roles,
'i' => ($roles->currentPage() - 1) * $roles->perPage() + 1,
'search' => $search,
'active' => 'menu-role',
];
return view('dashboard.Master_Data.Role.index', $data);
}

156
app/Http/Controllers/TransaksiKeluarMasukController.php

@ -2,95 +2,95 @@
namespace App\Http\Controllers;
use App\Http\Requests\ValidasiUpdatePengembalian;
use App\Models\Peti;
use App\Models\m_warehouse;
use App\Models\asset_status;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
// use App\Http\Requests\ValidasiUpdatePengembalian;
// use App\Models\Peti;
// use App\Models\m_warehouse;
// use App\Models\asset_status;
// use Illuminate\Http\Request;
// use Illuminate\Support\Facades\Auth;
class TransaksiKeluarMasukController extends Controller
{
public function index()
{
$data = [
'peminjaman' => asset_status::withTrashed()->all(),
'active' => 'menu-transaksi',
];
return view('dashboard.transaksi.index', $data);
}
// public function index()
// {
// $data = [
// 'peminjaman' => asset_status::withTrashed()->all(),
// 'active' => 'menu-transaksi',
// ];
// return view('dashboard.transaksi.index', $data);
// }
/**
* Show the form for creating a new resource.
*/
public function create()
{
//
}
// /**
// * Show the form for creating a new resource.
// */
// public function create()
// {
// //
// }
/**
* Store a newly created resource in storage.
*/
public function store(Request $request)
{
//
}
// /**
// * Store a newly created resource in storage.
// */
// public function store(Request $request)
// {
// //
// }
/**
* Display the specified resource.
*/
public function show($id)
{
}
// /**
// * Display the specified resource.
// */
// public function show($id)
// {
// }
/**
* Show the form for editing the specified resource.
*/
public function edit($id)
{
$data = [
'peti' => Peti::get(),
'peminjaman' => asset_status::findOrFail($id),
'warehouse' => m_warehouse::get(),
'active' => 'menu-pengembalian',
];
return view('dashboard.Pengembalian.edit', $data);
}
// /**
// * Show the form for editing the specified resource.
// */
// public function edit($id)
// {
// $data = [
// 'peti' => Peti::get(),
// 'peminjaman' => asset_status::findOrFail($id),
// 'warehouse' => m_warehouse::get(),
// 'active' => 'menu-pengembalian',
// ];
// return view('dashboard.Pengembalian.edit', $data);
// }
/**
* Update the specified resource in storage.
*/
public function update(ValidasiUpdatePengembalian $request, $id)
{
try {
$peminjaman = asset_status::findOrFail($id);
// /**
// * Update the specified resource in storage.
// */
// public function update(ValidasiUpdatePengembalian $request, $id)
// {
// try {
// $peminjaman = asset_status::findOrFail($id);
// Update atribut-atribut yang diperlukan
$peminjaman->enter_pic = Auth::user()->fullname;
$peminjaman->updated_by = Auth::user()->fullname;
// // Update atribut-atribut yang diperlukan
// $peminjaman->enter_pic = Auth::user()->fullname;
// $peminjaman->updated_by = Auth::user()->fullname;
$peminjaman->peti_id = $request->input('peti_id');
$peminjaman->exit_at = $request->input('exit_at');
$peminjaman->est_pengembalian = $request->input('est_pengembalian');
$peminjaman->exit_warehouse = $request->input('exit_warehouse');
$peminjaman->enter_at = $request->input('enter_at');
$peminjaman->enter_warehouse = $request->input('enter_warehouse');
$peminjaman->kondisi_peti = $request->input('kondisi_peti');
// $peminjaman->peti_id = $request->input('peti_id');
// $peminjaman->exit_at = $request->input('exit_at');
// $peminjaman->est_pengembalian = $request->input('est_pengembalian');
// $peminjaman->exit_warehouse = $request->input('exit_warehouse');
// $peminjaman->enter_at = $request->input('enter_at');
// $peminjaman->enter_warehouse = $request->input('enter_warehouse');
// $peminjaman->kondisi_peti = $request->input('kondisi_peti');
$peminjaman->save();
// $peminjaman->save();
return redirect()->route('dashboard.pengembalian.index')->with('success', 'Data peminjaman berhasil diperbaharui');
} catch (\Throwable $th) {
// Tampilkan pesan kesalahan untuk debugging
return redirect()->back()->with('error', 'Data peminjaman gagal diperbaharui: ' . $th->getMessage());
}
}
// return redirect()->route('dashboard.pengembalian.index')->with('success', 'Data peminjaman berhasil diperbaharui');
// } catch (\Throwable $th) {
// // Tampilkan pesan kesalahan untuk debugging
// return redirect()->back()->with('error', 'Data peminjaman gagal diperbaharui: ' . $th->getMessage());
// }
// }
/**
* Remove the specified resource from storage.
*/
public function destroy($id)
{
// dd("oke");
}
// /**
// * Remove the specified resource from storage.
// */
// public function destroy($id)
// {
// // dd("oke");
// }
}

61
app/Http/Controllers/TransferController.php

@ -9,22 +9,73 @@ use App\Models\m_warehouse;
use Illuminate\Http\Request;
use Symfony\Component\Uid\Uuid;
use Illuminate\Http\JsonResponse;
use Illuminate\Support\Collection;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Log;
use Illuminate\Support\Facades\Auth;
use App\Http\Requests\Transfer\ValidasiCreateTransfer;
use App\Http\Requests\Transfer\ValidasiUpdateTransfer;
class TransferController extends Controller
{
public function index()
public function index(Request $request)
{
$transfers = Transfer::orderBy('created_at', 'desc')->get();
$perPage = $request->input('perPage', 5);
$latestTransfers = $transfers->groupBy('peti_id')->map(function ($group) {
return $group->first();
$query = Transfer::join(DB::raw('(SELECT peti_id, MAX(updated_at) as latest_update FROM transfers GROUP BY peti_id) as latest_peti'), function ($join) {
$join->on('transfers.peti_id', '=', 'latest_peti.peti_id')
->on('transfers.updated_at', '=', 'latest_peti.latest_update');
})
->orderBy('created_at', 'desc');
// Add search logic similar to the Peti index controller
$search = $request->input('search') ?? '';
if ($search) {
$query->where(function ($q) use ($search) {
$q->where('name_customer', 'like', "%$search%")
->orWhereHas('peti', function ($petiQuery) use ($search) {
$petiQuery->where('fix_lot', 'like', "%$search%");
})
->orWhereHas('customer', function ($customerQuery) use ($search) {
$customerQuery->where('name', 'like', "%$search%");
})
->orWhereHas('sourceWarehouse', function ($sourceWarehouseQuery) use ($search) {
$sourceWarehouseQuery->where('name', 'like', "%$search%");
})
->orWhereHas('destinationWarehouse', function ($destinationWarehouseQuery) use ($search) {
$destinationWarehouseQuery->where('name', 'like', "%$search%");
})
->orWhere(function ($dateQuery) use ($search) {
try {
$formattedDate = \Carbon\Carbon::createFromFormat('d-m-Y', $search)->format('Y-m-d');
$dateQuery->whereDate('date', $formattedDate);
} catch (\Exception $e) {
Log::error('Error parsing date: ' . $e->getMessage());
}
});
});
}
if ($perPage == 'Semua') {
$chunkSize = 100;
$transfers = new Collection();
$currentPage = 1;
$query->chunk($chunkSize, function ($transferChunk) use ($transfers, &$currentPage) {
foreach ($transferChunk as $transfer) {
$transfer->setAttribute('i', ($currentPage - 1) * $transferChunk->perPage() + 1);
$transfers->push($transfer);
$currentPage++;
}
});
} else {
$transfers = $query->paginate($perPage);
}
$data = [
'transfer' => $latestTransfers,
'transfer' => $transfers,
'i' => ($transfers->currentPage() - 1) * $transfers->perPage() + 1,
'search' => $search,
'active' => 'menu-transfer',
];

40
app/Http/Controllers/TypePetiController.php

@ -4,23 +4,57 @@ namespace App\Http\Controllers;
use App\Models\Type_peti;
use Illuminate\Http\Request;
use App\Imports\TipePetiImport;
use Illuminate\Support\Collection;
use Illuminate\Support\Facades\Auth;
use Maatwebsite\Excel\Facades\Excel;
use App\Http\Requests\ValidasiCreateType_Peti;
use App\Http\Requests\ValidasiUpdateType_Peti;
use App\Imports\TipePetiImport;
class TypePetiController extends Controller
{
/**
* Display a listing of the resource.
*/
public function index()
public function index(Request $request)
{
$perPage = $request->input('perPage', 5);
$query = Type_peti::orderBy('created_at', 'desc');
// Add search logic similar to the Transfer index controller
$search = $request->input('search') ?? '';
if ($search) {
$query->where(function ($q) use ($search) {
$q->where('type', 'like', "%$search%")
->orWhere('size_peti', 'like', "%$search%")
->orWhere('description', 'like', "%$search%");
});
}
if ($perPage == 'Semua') {
$chunkSize = 100;
$TipePetis = new Collection();
$currentPage = 1;
$query->chunk($chunkSize, function ($TipePetiChunk) use ($TipePetis, &$currentPage) {
foreach ($TipePetiChunk as $TipePeti) {
$TipePeti->setAttribute('i', ($currentPage - 1) * $TipePetiChunk->perPage() + 1);
$TipePetis->push($TipePeti);
$currentPage++;
}
});
} else {
$TipePetis = $query->paginate($perPage);
}
$data = [
'typepeti' => Type_peti::orderBy('created_at', 'desc')->get(),
'TipePetis' => $TipePetis,
'i' => ($TipePetis->currentPage() - 1) * $TipePetis->perPage() + 1,
'search' => $search,
'active' => 'menu-typepeti',
];
return view('dashboard.Master_Data.Manajemen_Peti.Type_peti.index', $data);
}

41
app/Http/Controllers/WarehouseController.php

@ -5,25 +5,56 @@ namespace App\Http\Controllers;
use App\Models\m_warehouse;
use Illuminate\Http\Request;
use App\Imports\WarehouseImport;
use Illuminate\Support\Collection;
use Illuminate\Support\Facades\Auth;
use Maatwebsite\Excel\Facades\Excel;
use Illuminate\Support\Facades\Session;
use App\Http\Requests\ValidasiCreateWarehouse;
use App\Http\Requests\ValidasiUpdateWarehouse;
use Maatwebsite\Excel\Exceptions\NoTypeDetectedException;
use Illuminate\Support\Facades\Log;
class WarehouseController extends Controller
{
/**
* Display a listing of the resource.
*/
public function index()
public function index(Request $request)
{
$perPage = $request->input('perPage', 5);
$query = m_warehouse::orderBy('created_at', 'desc');
// Add search logic similar to the Transfer index controller
$search = $request->input('search') ?? '';
if ($search) {
$query->where(function ($q) use ($search) {
$q->where('name', 'like', "%$search%")
->orWhere('description', 'like', "%$search%")
->orWhere('address', 'like', "%$search%");
});
}
if ($perPage == 'Semua') {
$chunkSize = 100;
$warehouses = new Collection();
$currentPage = 1;
$query->chunk($chunkSize, function ($warehouseChunk) use ($warehouses, &$currentPage) {
foreach ($warehouseChunk as $warehouse) {
$warehouse->setAttribute('i', ($currentPage - 1) * $warehouseChunk->perPage() + 1);
$warehouses->push($warehouse);
$currentPage++;
}
});
} else {
$warehouses = $query->paginate($perPage);
}
$data = [
'warehouses' => m_warehouse::orderBy('created_at', 'desc')->get(),
'warehouse' => $warehouses,
'i' => ($warehouses->currentPage() - 1) * $warehouses->perPage() + 1,
'search' => $search,
'active' => 'menu-warehouse',
];
return view('dashboard.Master_Data.Warehouse.index', $data);
}

53
database/seeders/AssetStatusSeeder.php

@ -0,0 +1,53 @@
<?php
namespace Database\Seeders;
use App\Models\asset_status;
use Illuminate\Database\Seeder;
class AssetStatusSeeder extends Seeder
{
/**
* Run the database seeds.
*/
public function run(): void
{
//barang in
for ($i = 21; $i <= 30; $i++) {
asset_status::create([
'peti_id' => $i,
'exit_at' => now(),
'est_pengembalian' => now(),
'exit_pic' => 'Seeder',
'customer_id' => $i,
'warehouse_id' => $i,
'enter_at' => now(),
'enter_pic' => 'Seeder',
'enter_warehouse' => $i,
'kondisi_peti_id' => $i,
'status' => 1,
'created_by' => 'Seeder',
'updated_by' => 'Seeder',
'created_at' => now(),
'updated_at' => now(),
]);
}
//barang out
for ($i = 31; $i <= 40; $i++) {
asset_status::create([
'peti_id' => $i,
'exit_at' => now(),
'est_pengembalian' => now(),
'exit_pic' => 'Seeder',
'customer_id' => $i,
'warehouse_id' => $i,
'status' => 0,
'created_by' => 'Seeder',
'updated_by' => 'Seeder',
'created_at' => now(),
'updated_at' => now(),
]);
}
}
}

25
database/seeders/Customer.php → database/seeders/CustomerSeeder.php

@ -2,11 +2,10 @@
namespace Database\Seeders;
use App\Models\Customer;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
class Customer extends Seeder
class CustomerSeeder extends Seeder
{
/**
* Run the database seeds.
@ -14,8 +13,8 @@ class Customer extends Seeder
public function run(): void
{
// Sisipkan data pertama
DB::table('customers')->insert([
'name' => 'DHARMA',
Customer::create([
'name' => 'DHARMA G',
'code_customer' => 'DPM',
'lot_no' => 'JKT23',
'no_tlp' => '02122344',
@ -25,8 +24,8 @@ class Customer extends Seeder
]);
// Sisipkan data kedua
DB::table('customers')->insert([
'name' => 'ADHI CHANDRA',
Customer::create([
'name' => 'ADHI CHANDRA G',
'code_customer' => 'ACJ',
'lot_no' => 'JKT23',
'no_tlp' => '02198765',
@ -34,5 +33,17 @@ class Customer extends Seeder
'created_by' => 'Seeder',
'updated_by' => 'Seeder',
]);
for ($i = 3; $i <= 100; $i++) {
Customer::create([
'name' => 'Customer ' . $i,
'code_customer' => 'Code ' . $i, // Adjust the length as needed
'lot_no' => 'Lot ' . $i, // Adjust the length as needed
'no_tlp' => '12345678 ' . $i, // Adjust the length as needed
'address' => 'Address ' . $i,
'created_by' => 'Seeder',
'updated_by' => 'Seeder',
]);
}
}
}

18
database/seeders/DatabaseSeeder.php

@ -5,6 +5,16 @@ namespace Database\Seeders;
// use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use App\Models\User;
use Illuminate\Database\Seeder;
use Database\Seeders\PetiSeeder;
use Database\Seeders\RoleSeeder;
use Database\Seeders\UserSeeder;
use Database\Seeders\CustomerSeeder;
use Database\Seeders\DisposalSeeder;
use Database\Seeders\TipePetiSeeder;
use Database\Seeders\TransferSeeder;
use Database\Seeders\WarehouseSeeder;
use Database\Seeders\AssetStatusSeeder;
use Database\Seeders\Kondisi_PetiSeeder;
class DatabaseSeeder extends Seeder
{
@ -24,10 +34,14 @@ class DatabaseSeeder extends Seeder
RoleSeeder::class,
WarehouseSeeder::class,
UserSeeder::class,
// Type_Peti::class,
// Customer::class,
//batas ke bawah tidak terlalu penting
// TipePetiSeeder::class,
// CustomerSeeder::class,
// Kondisi_PetiSeeder::class,
// PetiSeeder::class,
// DisposalSeeder::class,
// TransferSeeder::class,
// AssetStatusSeeder::class,
]);
}
}

30
database/seeders/DisposalSeeder.php

@ -0,0 +1,30 @@
<?php
namespace Database\Seeders;
use App\Models\Disposal;
use Illuminate\Database\Seeder;
class DisposalSeeder extends Seeder
{
/**
* Run the database seeds.
*/
public function run(): void
{
for ($i = 1; $i <= 10; $i++) {
Disposal::create([
'peti_id' => $i, // Assuming you have 1000 petis in the 'petis' table
'customer_id' => $i, // Assuming you have 1000 customers in the 'customers' table
'warehouse_id' => $i, // Assuming you have 4 warehouses in the 'm_warehouses' table
'date_disposal' => now(),
'description' => 'Description',
'status_disposal' => 'INAKTIF',
'created_by' => 'Seeder',
'updated_by' => 'Seeder',
'created_at' => now(),
'updated_at' => now(),
]);
}
}
}

10
database/seeders/Kondisi_PetiSeeder.php

@ -3,7 +3,6 @@
namespace Database\Seeders;
use App\Models\Kondisi_Peti;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
class Kondisi_PetiSeeder extends Seeder
@ -28,5 +27,14 @@ class Kondisi_PetiSeeder extends Seeder
'created_by' => 'Seeder',
'updated_by' => 'Seeder',
]);
for ($i = 3; $i <= 100; $i++) {
Kondisi_Peti::create([
'nama_kondisi' => 'Kondisi ' . $i,
'deskripsi_kondisi' => 'Description for Kondisi ' . $i,
'created_by' => 'Seeder',
'updated_by' => 'Seeder',
]);
}
}
}

118
database/seeders/PetiSeeder.php

@ -2,10 +2,8 @@
namespace Database\Seeders;
use Illuminate\Support\Str;
use App\Models\Peti;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
class PetiSeeder extends Seeder
{
@ -14,117 +12,23 @@ class PetiSeeder extends Seeder
*/
public function run()
{
// Generate 5 dummy data
// for ($i = 0; $i < 5; $i++) {
// DB::table('petis')->insert([
// 'tipe_peti_id' => $this->getRandomId('type_petis'),
// 'warna' => 'Warna',
// 'fix_lot' => 'Dummy Fix Lot ' . ($i + 1),
// 'packing_no' => rand(1, 100),
// 'customer_id' => $this->getRandomId('customers'),
// 'jumlah' => rand(1, 10),
// 'date_pembuatan' => now(),
// 'warehouse_id' => $this->getRandomId('m_warehouses'),
// 'kondisipeti_id' => $this->getRandomId('kondisi_petis'),
// 'status' => 'AKTIF',
// 'created_at' => now(),
// 'updated_at' => now(),
// 'created_by' => 'Seeder',
// 'updated_by' => 'Seeder',
// ]);
// }
DB::table('petis')->insert([
[
'tipe_peti_id' => $this->getRandomId('type_petis'),
'warna' => 'Warna',
'fix_lot' => 'Dummy Fix Lot 1',
'packing_no' => 1,
'customer_id' => $this->getRandomId('customers'),
'jumlah' => 1,
for ($i = 1; $i <= 100; $i++) {
Peti::create([
'tipe_peti_id' => $i,
'warna' => 'Warna ' . $i,
'fix_lot' => 'Dummy Fix Lot ' . $i,
'packing_no' => $i,
'customer_id' => $i,
'jumlah' => $i,
'date_pembuatan' => now(),
'warehouse_id' => 1,
'kondisipeti_id' => $this->getRandomId('kondisi_petis'),
'warehouse_id' => $i, // Adjust based on the number of warehouses
'kondisipeti_id' => $i,
'status' => 'AKTIF',
'created_at' => now(),
'updated_at' => now(),
'created_by' => 'Seeder',
'updated_by' => 'Seeder',
],
[
'tipe_peti_id' => $this->getRandomId('type_petis'),
'warna' => 'Warna',
'fix_lot' => 'Dummy Fix Lot 2',
'packing_no' => 2,
'customer_id' => $this->getRandomId('customers'),
'jumlah' => 2,
'date_pembuatan' => now(),
'warehouse_id' => 2,
'kondisipeti_id' => $this->getRandomId('kondisi_petis'),
'status' => 'AKTIF',
'created_at' => now(),
'updated_at' => now(),
'created_by' => 'Seeder',
'updated_by' => 'Seeder',
],
[
'tipe_peti_id' => $this->getRandomId('type_petis'),
'warna' => 'Warna',
'fix_lot' => 'Dummy Fix Lot 3',
'packing_no' => 3,
'customer_id' => $this->getRandomId('customers'),
'jumlah' => 3,
'date_pembuatan' => now(),
'warehouse_id' => 3,
'kondisipeti_id' => $this->getRandomId('kondisi_petis'),
'status' => 'AKTIF',
'created_at' => now(),
'updated_at' => now(),
'created_by' => 'Seeder',
'updated_by' => 'Seeder',
],
[
'tipe_peti_id' => $this->getRandomId('type_petis'),
'warna' => 'Warna',
'fix_lot' => 'Dummy Fix Lot 4',
'packing_no' => 4,
'customer_id' => $this->getRandomId('customers'),
'jumlah' => 4,
'date_pembuatan' => now(),
'warehouse_id' => 4,
'kondisipeti_id' => $this->getRandomId('kondisi_petis'),
'status' => 'AKTIF',
'created_at' => now(),
'updated_at' => now(),
'created_by' => 'Seeder',
'updated_by' => 'Seeder',
],
[
'tipe_peti_id' => $this->getRandomId('type_petis'),
'warna' => 'Warna',
'fix_lot' => 'Dummy Fix Lot 5',
'packing_no' => 5,
'customer_id' => $this->getRandomId('customers'),
'jumlah' => 5,
'date_pembuatan' => now(),
'warehouse_id' => 1,
'kondisipeti_id' => $this->getRandomId('kondisi_petis'),
'status' => 'AKTIF',
'created_at' => now(),
'updated_at' => now(),
'created_by' => 'Seeder',
'updated_by' => 'Seeder',
],
]);
}
/**
* Get a random ID from a specific table
*
* @param string $tableName
* @return string|null
*/
protected function getRandomId($table)
{
return DB::table($table)->inRandomOrder()->first()->id;
}
}

10
database/seeders/RoleSeeder.php

@ -3,7 +3,6 @@
namespace Database\Seeders;
use App\Models\m_role;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
class RoleSeeder extends Seeder
@ -28,5 +27,14 @@ class RoleSeeder extends Seeder
'created_by' => 'Seeder',
'updated_by' => 'Seeder',
]);
// for ($i = 3; $i <= 100; $i++) {
// m_role::create([
// 'name' => 'Role ' . $i,
// 'description' => 'Description ' . $i,
// 'created_by' => 'Seeder',
// 'updated_by' => 'Seeder',
// ]);
// }
}
}

48
database/seeders/TipePetiSeeder.php

@ -0,0 +1,48 @@
<?php
namespace Database\Seeders;
use App\Models\Type_peti;
use Illuminate\Database\Seeder;
class TipePetiSeeder extends Seeder
{
/**
* Run the database seeds.
*/
public function run(): void
{
Type_peti::create([
'type' => 'Kecil',
'size_peti' => '2 X 2 X 2',
'description' => 'Peti dengan ukuran kecil',
'created_by' => 'Seeder',
'updated_by' => 'Seeder',
]);
Type_peti::create([
'type' => 'Standar',
'size_peti' => '3 X 3 X 3',
'description' => 'Peti dengan ukuran standar',
'created_by' => 'Seeder',
'updated_by' => 'Seeder',
]);
for ($i = 3; $i <= 100; $i++) {
Type_peti::create([
'type' => 'Type ' . $i,
'size_peti' => $this->generateSize(),
'description' => 'Description for Type ' . $i,
'created_by' => 'Seeder',
'updated_by' => 'Seeder',
]);
}
}
/**
* Generate a random size for the peti.
*/
private function generateSize(): string
{
return rand(1, 10) . ' X ' . rand(1, 10) . ' X ' . rand(1, 10);
}
}

29
database/seeders/TransferSeeder.php

@ -0,0 +1,29 @@
<?php
namespace Database\Seeders;
use App\Models\Transfer;
use Illuminate\Database\Seeder;
class TransferSeeder extends Seeder
{
/**
* Run the database seeds.
*/
public function run(): void
{
for ($i = 11; $i <= 20; $i++) {
Transfer::create([
'peti_id' => $i, // Assuming you have 1000 petis in the 'petis' table
'name_customer' => $i, // Assuming you have 1000 customers in the 'customers' table
'source_warehouse' => $i, // Assuming you have 4 warehouses in the 'm_warehouses' table
'destination_warehouse' => $i, // Assuming you have 4 warehouses in the 'm_warehouses' table
'date' => now(),
'created_by' => 'Seeder',
'updated_by' => 'Seeder',
'created_at' => now(),
'updated_at' => now(),
]);
}
}
}

32
database/seeders/Type_Peti.php

@ -1,32 +0,0 @@
<?php
namespace Database\Seeders;
use App\Models\Peti;
use Illuminate\Database\Seeder;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Support\Facades\DB;
class Type_Peti extends Seeder
{
/**
* Run the database seeds.
*/
public function run(): void
{
DB::table('type_petis')->insert([
'type' => 'Kecil',
'size_peti' => '2 X 2 X 2',
'description' => 'Peti dengan ukuran kecil',
'created_by' => 'Seeder',
'updated_by' => 'Seeder',
]);
DB::table('type_petis')->insert([
'type' => 'Standar',
'size_peti' => '3 X 3 X 3',
'description' => 'Peti dengan ukuran standar',
'created_by' => 'Seeder',
'updated_by' => 'Seeder',
]);
}
}

28
database/seeders/UserSeeder.php

@ -3,10 +3,7 @@
namespace Database\Seeders;
use App\Models\User;
// use Faker\Provider\Uuid;
use Ramsey\Uuid\Uuid;
use Illuminate\Database\Seeder;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
class UserSeeder extends Seeder
{
@ -15,6 +12,7 @@ class UserSeeder extends Seeder
*/
public function run(): void
{
// User admin
User::create([
'username' => 'admin',
'fullname' => 'Admin System',
@ -35,7 +33,7 @@ class UserSeeder extends Seeder
'updated_by' => 'Seeder',
]);
// User lainnya
// User operator
User::create([
'username' => 'Operator',
'fullname' => 'Operator System',
@ -55,5 +53,27 @@ class UserSeeder extends Seeder
'created_by' => 'Seeder',
'updated_by' => 'Seeder',
]);
// for ($i = 3; $i <= 100; $i++) {
// User::create([
// 'username' => 'user' . $i,
// 'fullname' => 'User ' . $i,
// 'nip' => '1234567890123' . $i,
// 'email' => 'user' . $i . '@example.com',
// 'no_hp' => '1234567890' . $i,
// 'divisi' => 'Division ' . $i,
// 'tgl_lahir' => now(),
// 'jenis_kelamin' => ($i % 2 == 0) ? 'Laki-laki' : 'Perempuan',
// 'agama' => ($i % 2 == 0) ? 'Islam' : 'Kristen',
// 'foto' => '', // Ganti dengan nama berkas foto jika diperlukan
// 'role_id' => $i,
// 'warehouse_id' => $i,
// 'address' => 'Address ' . $i,
// 'email_verified_at' => now(),
// 'password' => bcrypt('password'),
// 'created_by' => 'Seeder',
// 'updated_by' => 'Seeder',
// ]);
// }
}
}

19
database/seeders/WarehouseSeeder.php

@ -13,7 +13,7 @@ class WarehouseSeeder extends Seeder
*/
public function run(): void
{
// Warehouse 1
// Warehouse Jakarta
m_warehouse::create([
'name' => 'Jakarta',
'description' => 'PT Indonesia Steel Tube Works Jakarta Office',
@ -22,7 +22,7 @@ class WarehouseSeeder extends Seeder
'updated_by' => 'Seeder',
]);
// Warehouse 2
// Warehouse Bekasi
m_warehouse::create([
'name' => 'Bekasi',
'description' => 'PT Indonesia Steel Tube Works Bekasi Office',
@ -31,7 +31,7 @@ class WarehouseSeeder extends Seeder
'updated_by' => 'Seeder',
]);
// Warehouse 3
// Warehouse Semarang
m_warehouse::create([
'name' => 'Semarang',
'description' => 'PT Indonesia Steel Tube Works Semarang Office',
@ -40,7 +40,7 @@ class WarehouseSeeder extends Seeder
'updated_by' => 'Seeder',
]);
// Warehouse 4
// Warehouse Surabaya
m_warehouse::create([
'name' => 'Surabaya',
'description' => 'PT Indonesia Steel Tube Works Surabaya Office',
@ -48,5 +48,16 @@ class WarehouseSeeder extends Seeder
'created_by' => 'Seeder',
'updated_by' => 'Seeder',
]);
// Use a loop to add 1000 warehouses
// for ($i = 5; $i <= 100; $i++) {
// m_warehouse::create([
// 'name' => 'Warehouse ' . $i,
// 'description' => 'Description for Warehouse ' . $i,
// 'address' => 'Address for Warehouse ' . $i,
// 'created_by' => 'Seeder',
// 'updated_by' => 'Seeder',
// ]);
// }
}
}

BIN
public/assets/img/398.jpg

Binary file not shown.

Before

Width:  |  Height:  |  Size: 512 KiB

BIN
public/assets/img/8487305.jpg

Binary file not shown.

Before

Width:  |  Height:  |  Size: 394 KiB

After

Width:  |  Height:  |  Size: 146 KiB

BIN
public/assets/img/default-profile.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 97 KiB

After

Width:  |  Height:  |  Size: 34 KiB

BIN
public/assets/img/fotocewe.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.1 KiB

BIN
public/assets/img/fotocowo.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.0 KiB

BIN
public/assets/img/istw_black&white.jpg

Binary file not shown.

Before

Width:  |  Height:  |  Size: 83 KiB

After

Width:  |  Height:  |  Size: 35 KiB

BIN
public/assets/img/istw_grey.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 501 KiB

BIN
public/assets/img/istw_red.jpg

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1005 KiB

BIN
public/assets/img/logo_istw.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 80 KiB

After

Width:  |  Height:  |  Size: 8.9 KiB

BIN
public/assets/img/profile2.jpg

Binary file not shown.

Before

Width:  |  Height:  |  Size: 41 KiB

1
public/assets/img/undraw_posting_photo.svg

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 36 KiB

38
public/assets/img/undraw_profile.svg

@ -1,38 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 25.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 108.3 108.3" style="enable-background:new 0 0 108.3 108.3;" xml:space="preserve">
<style type="text/css">
.st0{fill:#E6E6E6;}
.st1{fill:#FFB8B8;}
.st2{fill:#575A89;}
.st3{fill:#2F2E41;}
</style>
<g id="Group_45" transform="translate(-191 -152.079)">
<g id="Group_30" transform="translate(282.246 224.353)">
<path id="Path_944" class="st0" d="M17.1-18.1c0,10.5-3,20.8-8.8,29.6c-1.2,1.9-2.5,3.6-4,5.3c-3.4,4-7.3,7.4-11.6,10.3
c-1.2,0.8-2.4,1.5-3.6,2.2c-6.5,3.6-13.7,5.8-21,6.5c-1.7,0.2-3.4,0.2-5.1,0.2c-4.7,0-9.4-0.6-14-1.8c-2.6-0.7-5.1-1.6-7.6-2.6
c-1.3-0.5-2.5-1.1-3.7-1.8c-2.9-1.5-5.6-3.3-8.2-5.3c-1.2-0.9-2.3-1.9-3.4-2.9C-95.8,1.3-97.1-33-76.8-54.9s54.6-23.3,76.5-2.9
C10.8-47.6,17.1-33.2,17.1-18.1L17.1-18.1z"/>
<path id="Path_945" class="st1" d="M-50.2-13.2c0,0,4.9,13.7,1.1,21.4s6,16.4,6,16.4s25.8-13.1,22.5-19.7s-8.8-15.3-7.7-20.8
L-50.2-13.2z"/>
<ellipse id="Ellipse_185" class="st1" cx="-40.6" cy="-25.5" rx="17.5" ry="17.5"/>
<path id="Path_946" class="st2" d="M-51.1,34.2c-2.6-0.7-5.1-1.6-7.6-2.6l0.5-13.3l4.9-11c1.1,0.9,2.3,1.6,3.5,2.3
c0.3,0.2,0.6,0.3,0.9,0.5c4.6,2.2,12.2,4.2,19.5-1.3c2.7-2.1,5-4.7,6.7-7.6L-8.8,9l0.7,8.4l0.8,9.8c-1.2,0.8-2.4,1.5-3.6,2.2
c-6.5,3.6-13.7,5.8-21,6.5c-1.7,0.2-3.4,0.2-5.1,0.2C-41.8,36.1-46.5,35.4-51.1,34.2z"/>
<path id="Path_947" class="st2" d="M-47.7-0.9L-47.7-0.9l-0.7,7.2l-0.4,3.8l-0.5,5.6l-1.8,18.5c-2.6-0.7-5.1-1.6-7.6-2.6
c-1.3-0.5-2.5-1.1-3.7-1.8c-2.9-1.5-5.6-3.3-8.2-5.3l-1.9-9l0.1-0.1L-47.7-0.9z"/>
<path id="Path_948" class="st2" d="M-10.9,29.3c-6.5,3.6-13.7,5.8-21,6.5c0.4-6.7,1-13.1,1.6-18.8c0.3-2.9,0.7-5.7,1.1-8.2
c1.2-8,2.5-13.5,3.4-14.2l6.1,4L4.9,7.3l-0.5,9.5c-3.4,4-7.3,7.4-11.6,10.3C-8.5,27.9-9.7,28.7-10.9,29.3z"/>
<path id="Path_949" class="st2" d="M-70.5,24.6c-1.2-0.9-2.3-1.9-3.4-2.9l0.9-6.1l0.7-0.1l3.1-0.4l6.8,14.8
C-65.2,28.3-67.9,26.6-70.5,24.6L-70.5,24.6z"/>
<path id="Path_950" class="st2" d="M8.3,11.5c-1.2,1.9-2.5,3.6-4,5.3c-3.4,4-7.3,7.4-11.6,10.3c-1.2,0.8-2.4,1.5-3.6,2.2l-0.6-2.8
l3.5-9.1l4.2-11.1l8.8,1.1C6.1,8.7,7.2,10.1,8.3,11.5z"/>
<path id="Path_951" class="st3" d="M-23.9-41.4c-2.7-4.3-6.8-7.5-11.6-8.9l-3.6,2.9l1.4-3.3c-1.2-0.2-2.3-0.2-3.5-0.2l-3.2,4.1
l1.3-4c-5.6,0.7-10.7,3.7-14,8.3c-4.1,5.9-4.8,14.1-0.8,20c1.1-3.4,2.4-6.6,3.5-9.9c0.9,0.1,1.7,0.1,2.6,0l1.3-3.1l0.4,3
c4.2-0.4,10.3-1.2,14.3-1.9l-0.4-2.3l2.3,1.9c1.2-0.3,1.9-0.5,1.9-0.7c2.9,4.7,5.8,7.7,8.8,12.5C-22.1-29.8-20.2-35.3-23.9-41.4z"
/>
<ellipse id="Ellipse_186" class="st1" cx="-24.9" cy="-26.1" rx="1.2" ry="2.4"/>
</g>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 2.8 KiB

38
public/assets/img/undraw_profile_1.svg

@ -1,38 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 25.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="_x38_8ce59e9-c4b8-4d1d-9d7a-ce0190159aa8"
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 231.8 231.8"
style="enable-background:new 0 0 231.8 231.8;" xml:space="preserve">
<style type="text/css">
.st0{opacity:0.5;}
.st1{fill:url(#SVGID_1_);}
.st2{fill:#F5F5F5;}
.st3{fill:#333333;}
.st4{fill:#4E73DF;}
.st5{opacity:0.1;enable-background:new ;}
.st6{fill:#BE7C5E;}
</style>
<g class="st0">
<linearGradient id="SVGID_1_" gradientUnits="userSpaceOnUse" x1="115.89" y1="525.2" x2="115.89" y2="756.98" gradientTransform="matrix(1 0 0 -1 0 756.98)">
<stop offset="0" style="stop-color:#808080;stop-opacity:0.25"/>
<stop offset="0.54" style="stop-color:#808080;stop-opacity:0.12"/>
<stop offset="1" style="stop-color:#808080;stop-opacity:0.1"/>
</linearGradient>
<circle class="st1" cx="115.9" cy="115.9" r="115.9"/>
</g>
<circle class="st2" cx="115.9" cy="115.3" r="113.4"/>
<path class="st3" d="M71.6,116.3c0,0-12.9,63.4-19.9,59.8c0,0,67.7,58.5,127.5,0c0,0-10.5-44.6-25.7-59.8H71.6z"/>
<path class="st4" d="M116.2,229c22.2,0,43.9-6.5,62.4-18.7c-4.2-22.8-20.1-24.1-20.1-24.1H70.8c0,0-15,1.2-19.7,22.2
C70.1,221.9,92.9,229.1,116.2,229z"/>
<circle class="st3" cx="115" cy="112.8" r="50.3"/>
<path class="st5" d="M97.3,158.4h35.1l0,0v28.1c0,9.7-7.8,17.5-17.5,17.5l0,0c-9.7,0-17.5-7.9-17.5-17.5L97.3,158.4L97.3,158.4z"/>
<path class="st6" d="M100.7,157.1h28.4c1.9,0,3.4,1.5,3.4,3.3v0v24.7c0,9.7-7.8,17.5-17.5,17.5l0,0c-9.7,0-17.5-7.9-17.5-17.5v0
v-24.7C97.4,158.6,98.9,157.1,100.7,157.1z"/>
<path class="st5" d="M97.4,171.6c11.3,4.2,23.8,4.3,35.1,0.1v-4.3H97.4V171.6z"/>
<circle class="st6" cx="115" cy="123.7" r="50.3"/>
<path class="st3" d="M66.9,104.6h95.9c0,0-8.2-38.7-44.4-36.2S66.9,104.6,66.9,104.6z"/>
<ellipse class="st6" cx="65.8" cy="121.5" rx="4.7" ry="8.8"/>
<ellipse class="st6" cx="164" cy="121.5" rx="4.7" ry="8.8"/>
<path class="st5" d="M66.9,105.9h95.9c0,0-8.2-38.7-44.4-36.2S66.9,105.9,66.9,105.9z"/>
</svg>

Before

Width:  |  Height:  |  Size: 2.1 KiB

44
public/assets/img/undraw_profile_2.svg

@ -1,44 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 25.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="_x38_8ce59e9-c4b8-4d1d-9d7a-ce0190159aa8"
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 231.8 231.8"
style="enable-background:new 0 0 231.8 231.8;" xml:space="preserve">
<style type="text/css">
.st0{opacity:0.5;}
.st1{fill:url(#SVGID_1_);}
.st2{fill:#F5F5F5;}
.st3{fill:#4E73DF;}
.st4{fill:#72351C;}
.st5{opacity:0.1;enable-background:new ;}
.st6{fill:#FDA57D;}
</style>
<g class="st0">
<linearGradient id="SVGID_1_" gradientUnits="userSpaceOnUse" x1="115.89" y1="526.22" x2="115.89" y2="758" gradientTransform="matrix(1 0 0 -1 0 758)">
<stop offset="0" style="stop-color:#808080;stop-opacity:0.25"/>
<stop offset="0.54" style="stop-color:#808080;stop-opacity:0.12"/>
<stop offset="1" style="stop-color:#808080;stop-opacity:0.1"/>
</linearGradient>
<circle class="st1" cx="115.9" cy="115.9" r="115.9"/>
</g>
<circle class="st2" cx="116.1" cy="115.1" r="113.4"/>
<path class="st3" d="M116.2,229c22.2,0,43.9-6.5,62.4-18.7c-4.2-22.9-20.1-24.2-20.1-24.2H70.8c0,0-15,1.2-19.7,22.2
C70.1,221.9,92.9,229.1,116.2,229z"/>
<circle class="st4" cx="115" cy="112.8" r="54.8"/>
<path class="st5" d="M97.3,158.4h35.1l0,0v28.1c0,9.7-7.8,17.6-17.5,17.6c0,0,0,0,0,0l0,0c-9.7,0-17.5-7.9-17.5-17.5L97.3,158.4
L97.3,158.4z"/>
<path class="st6" d="M100.7,157.1h28.4c1.9,0,3.3,1.5,3.3,3.4v24.7c0,9.7-7.9,17.5-17.5,17.5l0,0c-9.7,0-17.5-7.9-17.5-17.5v-24.7
C97.3,158.6,98.8,157.1,100.7,157.1L100.7,157.1z"/>
<path class="st5" d="M97.4,171.6c11.3,4.2,23.8,4.3,35.1,0.1v-4.3H97.4V171.6z"/>
<circle class="st6" cx="115" cy="123.7" r="50.3"/>
<path class="st5" d="M79.2,77.9c0,0,21.2,43,81,18l-13.9-21.8l-24.7-8.9L79.2,77.9z"/>
<path class="st4" d="M79.2,77.3c0,0,21.2,43,81,18l-13.9-21.8l-24.7-8.9L79.2,77.3z"/>
<path class="st4" d="M79,74.4c1.4-4.4,3.9-8.4,7.2-11.7c9.9-9.8,26.1-11.8,34.4-23c1.8,3.1,0.7,7.1-2.4,8.9
c-0.2,0.1-0.4,0.2-0.6,0.3c8-0.1,17.2-0.8,21.7-7.3c2.3,5.3,1.3,11.4-2.5,15.7c7.1,0.3,14.6,5.1,15.1,12.2c0.3,4.7-2.6,9.1-6.5,11.9
s-8.5,3.9-13.1,4.9C118.8,89.2,70.3,101.6,79,74.4z"/>
<path class="st4" d="M165.3,124.1H164L138,147.2c-25-11.7-43.3,0-43.3,0l-27.2-22.1l-2.7,0.3c0.8,27.8,23.9,49.6,51.7,48.9
C143.6,173.5,165.3,151.3,165.3,124.1L165.3,124.1z M115,156.1c-9.8,0-17.7-2-17.7-4.4s7.9-4.4,17.7-4.4s17.7,2,17.7,4.4
S124.7,156.1,115,156.1L115,156.1z"/>
<ellipse class="st6" cx="64.7" cy="123.6" rx="4.7" ry="8.8"/>
<ellipse class="st6" cx="165.3" cy="123.6" rx="4.7" ry="8.8"/>
</svg>

Before

Width:  |  Height:  |  Size: 2.6 KiB

47
public/assets/img/undraw_profile_3.svg

@ -1,47 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 25.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="_x38_8ce59e9-c4b8-4d1d-9d7a-ce0190159aa8"
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 231.8 231.8"
style="enable-background:new 0 0 231.8 231.8;" xml:space="preserve">
<style type="text/css">
.st0{opacity:0.5;}
.st1{fill:url(#SVGID_1_);}
.st2{fill:#F5F5F5;}
.st3{fill:#4E73DF;}
.st4{fill:#F55F44;}
.st5{opacity:0.1;enable-background:new ;}
.st6{fill:#FDA57D;}
.st7{fill:#333333;}
</style>
<g class="st0">
<linearGradient id="SVGID_1_" gradientUnits="userSpaceOnUse" x1="115.89" y1="9.36" x2="115.89" y2="241.14" gradientTransform="matrix(1 0 0 -1 0 241.14)">
<stop offset="0" style="stop-color:#808080;stop-opacity:0.25"/>
<stop offset="0.54" style="stop-color:#808080;stop-opacity:0.12"/>
<stop offset="1" style="stop-color:#808080;stop-opacity:0.1"/>
</linearGradient>
<circle class="st1" cx="115.9" cy="115.9" r="115.9"/>
</g>
<circle class="st2" cx="116.1" cy="115.1" r="113.4"/>
<path class="st3" d="M116.2,229c22.2,0,43.8-6.5,62.3-18.7c-4.2-22.8-20.1-24.2-20.1-24.2H70.8c0,0-15,1.2-19.7,22.2
C70.1,221.9,92.9,229.1,116.2,229z"/>
<circle class="st4" cx="115" cy="112.8" r="54.8"/>
<path class="st5" d="M97.3,158.4h35.1l0,0v28.1c0,9.7-7.9,17.5-17.5,17.5l0,0l0,0c-9.7,0-17.5-7.9-17.5-17.5l0,0L97.3,158.4
L97.3,158.4z"/>
<path class="st6" d="M100.7,157.1h28.4c1.9,0,3.4,1.5,3.4,3.4l0,0v24.7c0,9.7-7.9,17.5-17.5,17.5l0,0l0,0c-9.7,0-17.5-7.9-17.5-17.5
l0,0v-24.7C97.4,158.6,98.8,157.1,100.7,157.1L100.7,157.1L100.7,157.1z"/>
<path class="st5" d="M97.4,171.6c11.3,4.2,23.8,4.3,35.1,0.1v-4.3H97.4V171.6z"/>
<circle class="st6" cx="115" cy="123.7" r="50.3"/>
<circle class="st4" cx="114.9" cy="57.1" r="20.2"/>
<circle class="st4" cx="114.9" cy="37.1" r="13.3"/>
<path class="st4" d="M106.2,68.2c-9.9-4.4-14.5-15.8-10.5-25.9c-0.1,0.3-0.3,0.6-0.4,0.9c-4.6,10.2,0,22.2,10.2,26.8
s22.2,0,26.8-10.2c0.1-0.3,0.2-0.6,0.4-0.9C127.6,68.5,116,72.6,106.2,68.2z"/>
<path class="st5" d="M79.2,77.9c0,0,21.2,43,81,18l-13.9-21.8l-24.7-8.9L79.2,77.9z"/>
<path class="st4" d="M79.2,77.3c0,0,21.2,43,81,18l-13.9-21.8l-24.7-8.9L79.2,77.3z"/>
<path class="st7" d="M95.5,61.6c13-1,26.1-1,39.2,0C134.7,61.6,105.8,64.3,95.5,61.6z"/>
<path class="st4" d="M118,23c-1,0-2,0-3,0.2h0.8c7.3,0.2,13.1,6.4,12.8,13.7c-0.2,6.2-4.7,11.5-10.8,12.6
c7.3,0.1,13.3-5.8,13.4-13.2C131.2,29.1,125.3,23.1,118,23L118,23z"/>
<ellipse class="st6" cx="64.7" cy="123.6" rx="4.7" ry="8.8"/>
<ellipse class="st6" cx="165.3" cy="123.6" rx="4.7" ry="8.8"/>
<polygon class="st4" points="76,78.6 85.8,73.5 88,81.6 82,85.7 "/>
</svg>

Before

Width:  |  Height:  |  Size: 2.7 KiB

39
public/assets/img/undraw_rocket.svg

@ -1,39 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 25.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="b759170a-51c3-4e2f-999d-77dec9fd6d11"
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 650.9 610.5"
style="enable-background:new 0 0 650.9 610.5;" xml:space="preserve">
<style type="text/css">
.st0{fill:#AFC0E0;}
.st1{opacity:0.2;fill:#FFFFFF;enable-background:new ;}
.st2{opacity:0.1;enable-background:new ;}
.st3{fill:#E3E8F4;}
.st4{fill:#4E73DF;}
</style>
<path class="st0" d="M174,321c-2-1.6-4.2-3-6.6-4.2c-51.8-26.2-157,67.8-157,67.8L0,372.7c0,0,42.1-43.8,92.4-117.3
c45.2-66.1,150.7-51.8,171.4-48.3c2.3,0.4,3.6,0.7,3.6,0.7C298.7,288.3,174,321,174,321z"/>
<path class="st1" d="M269.4,213.9c-0.6-2-1.3-4-2-6c0,0-1.2-0.2-3.6-0.7c-20.7-3.5-126.2-17.8-171.4,48.3C42.1,329,0,372.7,0,372.7
l5.9,6.7c0,0,42.1-43.8,92.4-117.3C143.3,196.3,248,210.2,269.4,213.9z"/>
<path class="st0" d="M337.7,533.4c-79.2,40.8-127.8,77.1-127.8,77.1l-10.5-11.9c0,0,111.1-96.8,85.3-150.9c-0.5-1.2-1.2-2.3-1.9-3.4
c0,0,47.9-119.6,123.9-78.5c0,0,0.1,1,0.2,2.9C407.8,387.8,409.7,496.3,337.7,533.4z"/>
<path class="st2" d="M174,321c-2-1.6-4.2-3-6.6-4.2c29.3-38.9,61.5-75.5,96.3-109.7c2.3,0.4,3.6,0.7,3.6,0.7
C298.7,288.3,174,321,174,321z"/>
<path class="st2" d="M406.9,368.6c-38.6,29.6-79.4,56.1-122.3,79.1c-0.5-1.2-1.2-2.3-1.9-3.4c0,0,47.9-119.6,123.9-78.5
C406.7,365.7,406.8,366.7,406.9,368.6z"/>
<path class="st3" d="M263.6,455.5c-20.3,10.4-41.6,20.5-64,30.2c-33.6,14.6-51.5-2.2-80.7-91.5c0,0,12.5-22.5,37.2-57
c54.3-75.8,167.5-209.1,336.1-286.7C542.7,27.1,596.1,10.1,650.9,0c0,0-9.1,68.8-62,160.1S439.1,365.3,263.6,455.5z"/>
<circle class="st0" cx="435.6" cy="199.7" r="71.6"/>
<path class="st4" d="M469.2,237.9c-21,18.6-53.1,16.6-71.7-4.5c-7.8-8.8-12.2-20-12.7-31.8c-0.2-4.7,0.3-9.4,1.4-14
c0.5-2,1.1-4.1,1.9-6c2.9-7.7,7.7-14.5,13.8-19.9c0.3-0.3,0.6-0.5,0.9-0.8c17.1-14.4,41.5-15.9,60.3-3.8c3.5,2.3,6.7,4.9,9.5,7.9
l1,1.1C492.2,187.2,490.2,219.3,469.2,237.9C469.2,237.8,469.2,237.9,469.2,237.9z"/>
<path class="st0" d="M588.9,160.1c-83-35.2-96.8-109.6-96.8-109.6C542.7,27,596.1,10.1,650.9,0C650.9,0,641.8,68.8,588.9,160.1z"/>
<path class="st0" d="M263.6,455.5c-13.7,7.1-27.9,13.9-42.6,20.7c-7,3.2-14.1,6.4-21.4,9.5c-10.9,4.7-51.5-2.2-80.7-91.5
c0,0,4.1-7.3,12.1-20c6.1-9.6,14.5-22.2,25.1-37c0,0,11,33.2,41.1,67.3C215.8,425.7,238.4,443,263.6,455.5z"/>
<path class="st3" d="M221,476.2c-7,3.2-14.1,6.4-21.4,9.5c-10.9,4.7-51.5-2.2-80.7-91.5c0,0,4.1-7.3,12.1-20
C131,374.2,170.2,456.9,221,476.2z"/>
<path class="st1" d="M463.2,157l-0.1,0l-60.1,3.9c-0.3,0.3-0.6,0.5-0.9,0.8c-6.2,5.4-10.9,12.3-13.8,19.9l84.5-16.6L463.2,157z"/>
<path class="st1" d="M438.8,194.3l-53.9,7.3c-0.2-4.7,0.3-9.4,1.4-14l52.8,1.4L438.8,194.3z"/>
<path class="st1" d="M131.7,408.7c0,0,12.5-22.5,37.2-57C223.2,276,336.4,142.7,504.9,65c45.6-21.1,93.3-36.9,142.5-47.3
C650.1,6.4,650.9,0,650.9,0c-54.8,10.1-108.2,27-158.7,50.5c-168.6,77.7-281.8,211-336.1,286.7c-24.7,34.4-37.2,57-37.2,57
c11.5,35.3,26.6,57,40.5,70.3C149.4,451.4,139.7,433.3,131.7,408.7z"/>
</svg>

Before

Width:  |  Height:  |  Size: 3.1 KiB

82
resources/views/dashboard/Disposal/index.blade.php

@ -25,8 +25,37 @@
</div>
</div>
<div class="card-body">
<div class="row">
<div class="col-6">
<!-- Fitur page -->
<form method="GET" action="{{ route('dashboard.disposal.index') }}">
<label for="perPage">Tampilkan:</label>
<select id="perPage" name="perPage" class="form-select" onchange="this.form.submit()">
<option value="5" {{ request('perPage', 5) == '5' ? 'selected' : '' }}>5</option>
<option value="10" {{ request('perPage', 5) == '10' ? 'selected' : '' }}>10</option>
<option value="25" {{ request('perPage', 5) == '25' ? 'selected' : '' }}>25</option>
<option value="50" {{ request('perPage', 5) == '50' ? 'selected' : '' }}>50</option>
<option value="100" {{ request('perPage', 5) == '100' ? 'selected' : '' }}>100</option>
<option value="{{ $disposals->total() }}"
{{ request('perPage', 5) == $disposals->total() ? 'selected' : '' }}>Semua</option>
</select>
<input type="hidden" name="search" value="{{ $search }}">
<input type="hidden" name="page" value="{{ request('page', 1) }}">
</form>
</div>
<div class="col-6 d-flex justify-content-end mb-3">
<!-- Fitur search -->
<form method="GET" action="{{ route('dashboard.disposal.index') }}" class="form-inline">
<input type="text" name="search" class="form-control mr-2" placeholder="Cari..."
value="{{ $search }}">
<input type="hidden" name="page" value="1">
<input type="hidden" name="perPage" value="{{ request('perPage', 5) }}">
<button type="submit" class="btn btn-primary">Cari</button>
</form>
</div>
</div>
<div class="table-responsive">
<table class="table table-bordered" id="tablebarang" width="100%" cellspacing="0">
<table class="table table-bordered" width="100%" cellspacing="0">
<thead>
<tr>
<th class="text-center">No</th>
@ -34,24 +63,20 @@
<th>Nama Customer</th>
<th>Tanggal Disposal</th>
<th>Alasan Disposal</th>
{{-- <th>Status Peti</th> --}}
<th class="text-center">Action</th>
</tr>
</thead>
<tbody>
@php
$nodisposal = 1;
@endphp
@forelse ($disposal as $data_disposal)
@forelse ($disposals as $data_disposal)
<tr>
<td>{{ $nodisposal++ }}</td>
<td>{{ $i++ }}</td>
<td>{{ optional($data_disposal->peti)->fix_lot }}</td>
<td>{{ optional($data_disposal->customer)->name }}</td>
<td>{{ \Carbon\Carbon::parse($data_disposal->date_disposal)->format('d-m-Y') }}</td>
<td>{{ $data_disposal->description }}</td>
{{-- <td>{{ $data_disposal->status_disposal }}</td> --}}
<td>{{ optional($data_disposal)->description }}</td>
<td class="text-center">
<a href="{{ route('dashboard.disposal.edit', $data_disposal->id) }}" title="Edit">
<a href="{{ route('dashboard.disposal.edit', $data_disposal->id) }}"
title="Edit">
<i class="fa fa-edit mr-2" style="font-size: 20px"></i>
</a>
<form action="{{ route('dashboard.disposal.destroy', $data_disposal->id) }}"
@ -67,10 +92,45 @@
</td>
</tr>
@empty
<tr>
<td colspan="6" class="text-center">Data Kosong</td>
</tr>
@endforelse
</tbody>
</table>
</div>
<div class="row mt-3">
<div class="col-4">
<!-- Tampilkan jumlah data yang ditampilkan -->
@if (!$disposals->isEmpty())
<p class="d-inline-block">Showing {{ $disposals->firstItem() }} to
{{ $disposals->lastItem() }} of
{{ $disposals->total() }} entries</p>
@endif
</div>
<div class="col-8 d-flex justify-content-end">
@if ($disposals->total() > $disposals->perPage())
<nav aria-label="Page navigation">
<ul class="pagination justify-content-center">
<li class="page-item {{ $disposals->onFirstPage() ? 'disabled' : '' }}">
<a class="page-link"
href="{{ $disposals->appends(['perPage' => Request::get('perPage')])->url(1) }}"
aria-label="First">
<span aria-hidden="true">First</span>
</a>
</li>
{{ $disposals->appends(['perPage' => Request::get('perPage')])->links() }}
<li class="page-item {{ $disposals->hasMorePages() ? '' : 'disabled' }}">
<a class="page-link"
href="{{ $disposals->appends(['perPage' => Request::get('perPage')])->url($disposals->lastPage()) }}"
aria-label="Last">
<span aria-hidden="true">Last</span>
</a>
</li>
</ul>
</nav>
@endif
</div>
</div>
</div>
</div>

5
resources/views/dashboard/Disposal/show.blade.php

@ -1,5 +0,0 @@
@extends('layouts.main')
@section('content')
@include('layouts.components.alert-prompt')
<p>Halaman Show Disposal</p>
@endsection

2
resources/views/dashboard/History/Peminjaman/index.blade.php

@ -77,7 +77,7 @@
</tr>
@empty
<tr>
<td colspan="7" class="text-center">Data Kosong</td>
<td colspan="8" class="text-center">Data Kosong</td>
</tr>
@endforelse
</tbody>

87
resources/views/dashboard/History/Transfer/index.blade.php

@ -18,8 +18,37 @@
</div>
</div>
<div class="card-body">
<div class="row mb-3">
<div class="col-6">
<!-- Fitur page -->
<form method="GET" action="{{ route('dashboard.history.historyTransfer') }}">
<label for="perPage">Tampilkan:</label>
<select id="perPage" name="perPage" class="form-select" onchange="this.form.submit()">
<option value="5" {{ request('perPage', 5) == '5' ? 'selected' : '' }}>5</option>
<option value="10" {{ request('perPage', 5) == '10' ? 'selected' : '' }}>10</option>
<option value="25" {{ request('perPage', 5) == '25' ? 'selected' : '' }}>25</option>
<option value="50" {{ request('perPage', 5) == '50' ? 'selected' : '' }}>50</option>
<option value="100" {{ request('perPage', 5) == '100' ? 'selected' : '' }}>100</option>
<option value="{{ $transfer->total() }}"
{{ request('perPage', 5) == $transfer->total() ? 'selected' : '' }}>Semua</option>
</select>
<input type="hidden" name="search" value="{{ $search }}">
<input type="hidden" name="page" value="{{ request('page', 1) }}">
</form>
</div>
<div class="col-6 d-flex justify-content-end mb-3">
<!-- Fitur search -->
<form method="GET" action="{{ route('dashboard.history.historyTransfer') }}" class="form-inline">
<input type="text" name="search" class="form-control mr-2" placeholder="Cari..."
value="{{ $search }}">
<input type="hidden" name="page" value="1">
<input type="hidden" name="perPage" value="{{ request('perPage', 5) }}">
<button type="submit" class="btn btn-primary">Cari</button>
</form>
</div>
</div>
<div class="table-responsive">
<table class="table table-bordered" id="tablebarang" width="100%" cellspacing="0">
<table class="table table-bordered" width="100%" cellspacing="0">
<thead>
<tr>
<th class="text-center">No</th>
@ -31,22 +60,56 @@
</tr>
</thead>
<tbody>
@php
$notransfer = 1;
@endphp
@foreach ($transfer as $data_transfer)
@forelse ($transfer as $data_transfer)
<tr>
<td>{{ $notransfer++ }}</td>
<td>{{ $data_transfer->peti->fix_lot }}</td>
<td>{{ $data_transfer->customer->name ?? '' }}</td>
<td>{{ \Carbon\Carbon::parse($data_transfer->date)->format('d/m/Y') }}</td>
<td>{{ $data_transfer->sourceWarehouse->name ?? '' }}</td>
<td>{{ $data_transfer->destinationWarehouse->name }}</td>
<td>{{ $i++ }}</td>
<td>{{ optional($data_transfer->peti)->fix_lot }}</td>
<td>{{ optional($data_transfer->customer)->name }}</td>
<td>{{ \Carbon\Carbon::parse($data_transfer->date)->format('d-m-Y') }}</td>
<td>{{ optional($data_transfer->sourceWarehouse)->name }}</td>
<td>{{ optional($data_transfer->destinationWarehouse)->name }}</td>
</tr>
@endforeach
@empty
<tr>
<td colspan="6" class="text-center">Data Kosong</td>
</tr>
@endforelse
</tbody>
</table>
</div>
<div class="row mt-3">
<div class="col-4">
<!-- Tampilkan jumlah data yang ditampilkan -->
@if (!$transfer->isEmpty())
<p class="d-inline-block">Showing {{ $transfer->firstItem() }} to
{{ $transfer->lastItem() }} of
{{ $transfer->total() }} entries</p>
@endif
</div>
<div class="col-8 d-flex justify-content-end">
@if ($transfer->total() > $transfer->perPage())
<nav aria-label="Page navigation">
<ul class="pagination justify-content-center">
<li class="page-item {{ $transfer->onFirstPage() ? 'disabled' : '' }}">
<a class="page-link"
href="{{ $transfer->appends(['perPage' => Request::get('perPage')])->url(1) }}"
aria-label="First">
<span aria-hidden="true">First</span>
</a>
</li>
{{ $transfer->appends(['perPage' => Request::get('perPage')])->links() }}
<li class="page-item {{ $transfer->hasMorePages() ? '' : 'disabled' }}">
<a class="page-link"
href="{{ $transfer->appends(['perPage' => Request::get('perPage')])->url($transfer->lastPage()) }}"
aria-label="Last">
<span aria-hidden="true">Last</span>
</a>
</li>
</ul>
</nav>
@endif
</div>
</div>
</div>
</div>
@endsection

87
resources/views/dashboard/Master_Data/Customer/index.blade.php

@ -3,7 +3,7 @@
@include('layouts.components.alert-prompt')
@if (auth()->user()->role_id == 1)
<div class="card shadow mb-4">
<nav class="navbar navbar-expand navbar-light bg-light mb-4 py-3" style="border-bottom: 1px solid #ddd;">
<nav class="navbar navbar-expand navbar-light bg-light py-3" style="border-bottom: 1px solid #ddd;">
<h5 class="m-0 font-weight-bold text-primary mt-2">Data Customer</h5>
<ul class="navbar-nav ml-auto">
<li class="nav-item dropdown">
@ -23,8 +23,37 @@
</ul>
</nav>
<div class="card-body">
<div class="row">
<div class="col-6">
<!-- Fitur page -->
<form method="GET" action="{{ route('dashboard.customer.index') }}">
<label for="perPage">Tampilkan:</label>
<select id="perPage" name="perPage" class="form-select" onchange="this.form.submit()">
<option value="5" {{ request('perPage', 5) == '5' ? 'selected' : '' }}>5</option>
<option value="10" {{ request('perPage', 5) == '10' ? 'selected' : '' }}>10</option>
<option value="25" {{ request('perPage', 5) == '25' ? 'selected' : '' }}>25</option>
<option value="50" {{ request('perPage', 5) == '50' ? 'selected' : '' }}>50</option>
<option value="100" {{ request('perPage', 5) == '100' ? 'selected' : '' }}>100</option>
<option value="{{ $customers->total() }}"
{{ request('perPage', 5) == $customers->total() ? 'selected' : '' }}>Semua</option>
</select>
<input type="hidden" name="search" value="{{ $search }}">
<input type="hidden" name="page" value="{{ request('page', 1) }}">
</form>
</div>
<div class="col-6 d-flex justify-content-end mb-3">
<!-- Fitur search -->
<form method="GET" action="{{ route('dashboard.customer.index') }}" class="form-inline">
<input type="text" name="search" class="form-control mr-2" placeholder="Cari..."
value="{{ $search }}">
<input type="hidden" name="page" value="1">
<input type="hidden" name="perPage" value="{{ request('perPage', 5) }}">
<button type="submit" class="btn btn-primary">Cari</button>
</form>
</div>
</div>
<div class="table-responsive">
<table class="table table-bordered" id="tablebarang" width="100%" cellspacing="0">
<table class="table table-bordered" width="100%" cellspacing="0">
<thead>
<tr>
<th class="text-center">No</th>
@ -36,16 +65,13 @@
</tr>
</thead>
<tbody>
@php
$nocustomer = 1;
@endphp
@forelse ($customer as $data_customer)
@forelse ($customers as $data_customer)
<tr>
<td class="text-center">{{ $nocustomer++ }}</td>
<td>{{ $data_customer->name }}</td>
<td>{{ $data_customer->code_customer }}</td>
<td>{{ $data_customer->no_tlp }}</td>
<td>{{ $data_customer->address }}</td>
<td class="text-center">{{ $i++ }}</td>
<td>{{ optional($data_customer)->name }}</td>
<td>{{ optional($data_customer)->code_customer }}</td>
<td>{{ optional($data_customer)->no_tlp }}</td>
<td>{{ optional($data_customer)->address }}</td>
<td class="text-center">
<a href="{{ route('dashboard.customer.show', [$data_customer->id]) }}">
<i class="fa fa-eye mr-2" style="font-size: 20px"></i>
@ -66,10 +92,46 @@
</td>
</tr>
@empty
<tr>
<td colspan="6" class="text-center">Data Kosong</td>
</tr>
@endforelse
</tbody>
</table>
</div>
<div class="row mt-3">
<div class="col-4">
<!-- Tampilkan jumlah data yang ditampilkan -->
@if (!$customers->isEmpty())
<p class="d-inline-block">Showing {{ $customers->firstItem() }} to
{{ $customers->lastItem() }} of
{{ $customers->total() }} entries</p>
@endif
</div>
<div class="col-8 d-flex justify-content-end">
@if ($customers->total() > $customers->perPage())
<nav aria-label="Page navigation">
<ul class="pagination justify-content-center">
<li class="page-item {{ $customers->onFirstPage() ? 'disabled' : '' }}">
<a class="page-link"
href="{{ $customers->appends(['perPage' => Request::get('perPage')])->url(1) }}"
aria-label="First">
<span aria-hidden="true">First</span>
</a>
</li>
{{ $customers->appends(['perPage' => Request::get('perPage')])->links() }}
<li class="page-item {{ $customers->hasMorePages() ? '' : 'disabled' }}">
<a class="page-link"
href="{{ $customers->appends(['perPage' => Request::get('perPage')])->url($customers->lastPage()) }}"
aria-label="Last">
<span aria-hidden="true">Last</span>
</a>
</li>
</ul>
</nav>
@endif
</div>
</div>
</div>
</div>
@else
@ -88,7 +150,8 @@
</button>
</div>
<div class="modal-body">
<form action="{{ route('dashboard.customer.import') }}" method="POST" enctype="multipart/form-data">
<form action="{{ route('dashboard.customer.import') }}" method="POST"
enctype="multipart/form-data">
@csrf
<div class="form-group">
<div class="form-group">

92
resources/views/dashboard/Master_Data/Manajemen_Peti/Kondisi_Peti/index.blade.php

@ -3,7 +3,7 @@
@include('layouts.components.alert-prompt')
@if (auth()->user()->role_id == 1)
<div class="card shadow mb-4">
<nav class="navbar navbar-expand navbar-light bg-light mb-4 py-3" style="border-bottom: 1px solid #ddd;">
<nav class="navbar navbar-expand navbar-light bg-light py-3" style="border-bottom: 1px solid #ddd;">
<h5 class="m-0 font-weight-bold text-primary mt-2">Data Kondisi Peti</h5>
<ul class="navbar-nav ml-auto">
<li class="nav-item dropdown">
@ -24,8 +24,37 @@
</ul>
</nav>
<div class="card-body">
<div class="row">
<div class="col-6">
<!-- Fitur page -->
<form method="GET" action="{{ route('dashboard.kondisipeti.index') }}">
<label for="perPage">Tampilkan:</label>
<select id="perPage" name="perPage" class="form-select" onchange="this.form.submit()">
<option value="5" {{ request('perPage', 5) == '5' ? 'selected' : '' }}>5</option>
<option value="10" {{ request('perPage', 5) == '10' ? 'selected' : '' }}>10</option>
<option value="25" {{ request('perPage', 5) == '25' ? 'selected' : '' }}>25</option>
<option value="50" {{ request('perPage', 5) == '50' ? 'selected' : '' }}>50</option>
<option value="100" {{ request('perPage', 5) == '100' ? 'selected' : '' }}>100</option>
<option value="{{ $kondisiPetis->total() }}"
{{ request('perPage', 5) == $kondisiPetis->total() ? 'selected' : '' }}>Semua</option>
</select>
<input type="hidden" name="search" value="{{ $search }}">
<input type="hidden" name="page" value="{{ request('page', 1) }}">
</form>
</div>
<div class="col-6 d-flex justify-content-end mb-3">
<!-- Fitur search -->
<form method="GET" action="{{ route('dashboard.kondisipeti.index') }}" class="form-inline">
<input type="text" name="search" class="form-control mr-2" placeholder="Cari..."
value="{{ $search }}">
<input type="hidden" name="page" value="1">
<input type="hidden" name="perPage" value="{{ request('perPage', 5) }}">
<button type="submit" class="btn btn-primary">Cari</button>
</form>
</div>
</div>
<div class="table-responsive">
<table class="table table-bordered" id="tablebarang" width="100%" cellspacing="0">
<table class="table table-bordered" width="100%" cellspacing="0">
<thead>
<tr>
<th class="text-center" style="width: 20px">No</th>
@ -35,14 +64,11 @@
</tr>
</thead>
<tbody>
@php
$nokondisi = 1;
@endphp
@foreach ($kondisiPeti as $data_kondisiPeti)
@forelse ($kondisiPetis as $data_kondisiPeti)
<tr>
<td class="text-center">{{ $nokondisi++ }}</td>
<td>{{ $data_kondisiPeti->nama_kondisi }}</td>
<td>{{ $data_kondisiPeti->deskripsi_kondisi }}</td>
<td class="text-center">{{ $i++ }}</td>
<td>{{ optional($data_kondisiPeti)->nama_kondisi }}</td>
<td>{{ optional($data_kondisiPeti)->deskripsi_kondisi }}</td>
<td class="text-center">
<a href="#" data-toggle="modal"
data-target="#editDataModal{{ $data_kondisiPeti->id }}">
@ -60,10 +86,47 @@
</form>
</td>
</tr>
@endforeach
@empty
<tr>
<td colspan="4" class="text-center">Data Kosong</td>
</tr>
@endforelse
</tbody>
</table>
</div>
<div class="row mt-3">
<div class="col-4">
<!-- Tampilkan jumlah data yang ditampilkan -->
@if (!$kondisiPetis->isEmpty())
<p class="d-inline-block">Showing {{ $kondisiPetis->firstItem() }} to
{{ $kondisiPetis->lastItem() }} of
{{ $kondisiPetis->total() }} entries</p>
@endif
</div>
<div class="col-8 d-flex justify-content-end">
@if ($kondisiPetis->total() > $kondisiPetis->perPage())
<nav aria-label="Page navigation">
<ul class="pagination justify-content-center">
<li class="page-item {{ $kondisiPetis->onFirstPage() ? 'disabled' : '' }}">
<a class="page-link"
href="{{ $kondisiPetis->appends(['perPage' => Request::get('perPage')])->url(1) }}"
aria-label="First">
<span aria-hidden="true">First</span>
</a>
</li>
{{ $kondisiPetis->appends(['perPage' => Request::get('perPage')])->links() }}
<li class="page-item {{ $kondisiPetis->hasMorePages() ? '' : 'disabled' }}">
<a class="page-link"
href="{{ $kondisiPetis->appends(['perPage' => Request::get('perPage')])->url($kondisiPetis->lastPage()) }}"
aria-label="Last">
<span aria-hidden="true">Last</span>
</a>
</li>
</ul>
</nav>
@endif
</div>
</div>
</div>
</div>
@elseif (auth()->user()->role_id == 2)
@ -82,7 +145,8 @@
</button>
</div>
<div class="modal-body">
<form action="{{ route('dashboard.kondisipeti.import') }}" method="POST" enctype="multipart/form-data">
<form action="{{ route('dashboard.kondisipeti.import') }}" method="POST"
enctype="multipart/form-data">
@csrf
<div class="form-group">
<div class="form-group">
@ -94,8 +158,8 @@
</div>
<!-- Tombol untuk mengunduh file -->
<div class="form-group">
<a href="{{ asset('assets/file/Format_Import_Kondisi_Peti.csv') }}" class="btn btn-primary"
download>Unduh Format Kondisi Peti</a>
<a href="{{ asset('assets/file/Format_Import_Kondisi_Peti.csv') }}"
class="btn btn-primary" download>Unduh Format Kondisi Peti</a>
</div>
</div>
<div class="modal-footer">
@ -149,7 +213,7 @@
</div>
<!-- Edit data Modal -->
@foreach ($kondisiPeti as $data)
@foreach ($kondisiPetis as $data)
<div class="modal fade" id="editDataModal{{ $data['id'] }}" tabindex="-1" role="dialog"
aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">

9
resources/views/dashboard/Master_Data/Manajemen_Peti/Peti/all_print.blade.php

@ -17,11 +17,16 @@
th,
td {
border: 1px solid black;
/* Tambahkan garis pada setiap cell */
}
th,
td {
text-align: center;
font-size: 14px;
/* Ukuran huruf yang lebih kecil */
/* margin: 3px; */
/* Tambahkan margin */
}
th {
@ -47,8 +52,8 @@
/* Atur ukuran gambar QR Code */
.qrcode {
width: 150px;
height: 150px;
width: 160px;
height: 160px;
}
</style>
</head>

30
resources/views/dashboard/Master_Data/Manajemen_Peti/Peti/index.blade.php

@ -13,7 +13,7 @@
@include('layouts.components.alert-prompt')
@if (auth()->user()->role_id == 1)
<div class="card shadow mb-4">
<nav class="navbar navbar-expand navbar-light bg-light mb-4 py-3" style="border-bottom: 1px solid #ddd;">
<nav class="navbar navbar-expand navbar-light bg-light py-3" style="border-bottom: 1px solid #ddd;">
<h5 class="m-0 font-weight-bold text-primary mt-2">Data Peti</h5>
<ul class="navbar-nav ml-auto">
<li class="nav-item dropdown">
@ -42,7 +42,7 @@
</ul>
</nav>
<div class="card-body">
<div class="row mb-3">
<div class="row">
<div class="col-6">
<!-- Fitur page -->
<form method="GET" action="{{ route('dashboard.peti.index') }}">
@ -94,28 +94,28 @@
<tbody>
@forelse ($peti as $data_peti)
<tr>
<td>{{ $i++ }}</td>
<td class="text-center">{{ $i++ }}</td>
<td><input type="checkbox" class="checkbox" value="{{ $data_peti->id }}">
</td>
<td>{{ $data_peti->fix_lot }}</td>
<td>{{ $data_peti->customer->name }}</td>
<td>{{ $data_peti->customer->code_customer }}</td>
<td>{{ $data_peti->tipe_peti->type }}</td>
<td>{{ $data_peti->tipe_peti->size_peti }}</td>
<td>{{ $data_peti->customer->lot_no }}</td>
<td class="text-right">{{ $data_peti->packing_no }}</td>
<td>{{ $data_peti->warehouse->name }}</td>
<td>{{ $data_peti->kondisipeti->nama_kondisi }}</td>
<td>{{ optional($data_peti)->fix_lot }}</td>
<td>{{ optional($data_peti->customer)->name }}</td>
<td>{{ optional($data_peti->customer)->code_customer }}</td>
<td>{{ optional($data_peti->tipe_peti)->type }}</td>
<td>{{ optional($data_peti->tipe_peti)->size_peti }}</td>
<td>{{ optional($data_peti->customer)->lot_no }}</td>
<td class="text-right">{{ optional($data_peti)->packing_no }}</td>
<td>{{ optional($data_peti->warehouse)->name }}</td>
<td>{{ optional($data_peti->kondisipeti)->nama_kondisi }}</td>
<td>
@if ($data_peti->status_isi == 1)
@if (optional($data_peti)->status_isi == 1)
ADA
@elseif($data_peti->status_isi == 0)
@elseif(optional($data_peti)->status_isi == 0)
TIDAK ADA
@else
TIDAK ADA
@endif
</td>
<td>{{ $data_peti->warna }}</td>
<td>{{ optional($data_peti)->warna }}</td>
<td class="text-center">
<a href="{{ route('dashboard.peti.show', [$data_peti->id]) }}">
<i class="fa fa-eye mr-2" style="font-size: 20px"></i>

85
resources/views/dashboard/Master_Data/Manajemen_Peti/Type_peti/index.blade.php

@ -3,7 +3,7 @@
@include('layouts.components.alert-prompt')
@if (auth()->user()->role_id == 1)
<div class="card shadow mb-4">
<nav class="navbar navbar-expand navbar-light bg-light mb-4 py-3" style="border-bottom: 1px solid #ddd;">
<nav class="navbar navbar-expand navbar-light bg-light py-3" style="border-bottom: 1px solid #ddd;">
<h5 class="m-0 font-weight-bold text-primary mt-2">Data Tipe Peti</h5>
<ul class="navbar-nav ml-auto">
<li class="nav-item dropdown">
@ -23,8 +23,37 @@
</ul>
</nav>
<div class="card-body">
<div class="row">
<div class="col-6">
<!-- Fitur page -->
<form method="GET" action="{{ route('dashboard.typepeti.index') }}">
<label for="perPage">Tampilkan:</label>
<select id="perPage" name="perPage" class="form-select" onchange="this.form.submit()">
<option value="5" {{ request('perPage', 5) == '5' ? 'selected' : '' }}>5</option>
<option value="10" {{ request('perPage', 5) == '10' ? 'selected' : '' }}>10</option>
<option value="25" {{ request('perPage', 5) == '25' ? 'selected' : '' }}>25</option>
<option value="50" {{ request('perPage', 5) == '50' ? 'selected' : '' }}>50</option>
<option value="100" {{ request('perPage', 5) == '100' ? 'selected' : '' }}>100</option>
<option value="{{ $TipePetis->total() }}"
{{ request('perPage', 5) == $TipePetis->total() ? 'selected' : '' }}>Semua</option>
</select>
<input type="hidden" name="search" value="{{ $search }}">
<input type="hidden" name="page" value="{{ request('page', 1) }}">
</form>
</div>
<div class="col-6 d-flex justify-content-end mb-3">
<!-- Fitur search -->
<form method="GET" action="{{ route('dashboard.typepeti.index') }}" class="form-inline">
<input type="text" name="search" class="form-control mr-2" placeholder="Cari..."
value="{{ $search }}">
<input type="hidden" name="page" value="1">
<input type="hidden" name="perPage" value="{{ request('perPage', 5) }}">
<button type="submit" class="btn btn-primary">Cari</button>
</form>
</div>
</div>
<div class="table-responsive">
<table class="table table-bordered" id="tablebarang" width="100%" cellspacing="0">
<table class="table table-bordered" width="100%" cellspacing="0">
<thead>
<tr>
<th class="text-center" style="width: 20px">No</th>
@ -35,15 +64,12 @@
</tr>
</thead>
<tbody>
@php
$notype = 1;
@endphp
@forelse ($typepeti as $data_typepeti)
@forelse ($TipePetis as $data_typepeti)
<tr>
<td class="text-center">{{ $notype++ }}</td>
<td>{{ $data_typepeti->type }}</td>
<td>{{ $data_typepeti->size_peti }}</td>
<td>{{ $data_typepeti->description }}</td>
<td class="text-center">{{ $i++ }}</td>
<td>{{ optional($data_typepeti)->type }}</td>
<td>{{ optional($data_typepeti)->size_peti }}</td>
<td>{{ optional($data_typepeti)->description }}</td>
<td class="text-center">
<a href="{{ route('dashboard.typepeti.show', [$data_typepeti->id]) }}">
<i class="fa fa-eye mr-2" style="font-size: 20px"></i>
@ -64,10 +90,46 @@
</td>
</tr>
@empty
<tr>
<td colspan="5" class="text-center">Data Kosong</td>
</tr>
@endforelse
</tbody>
</table>
</div>
<div class="row mt-3">
<div class="col-4">
<!-- Tampilkan jumlah data yang ditampilkan -->
@if (!$TipePetis->isEmpty())
<p class="d-inline-block">Showing {{ $TipePetis->firstItem() }} to
{{ $TipePetis->lastItem() }} of
{{ $TipePetis->total() }} entries</p>
@endif
</div>
<div class="col-8 d-flex justify-content-end">
@if ($TipePetis->total() > $TipePetis->perPage())
<nav aria-label="Page navigation">
<ul class="pagination justify-content-center">
<li class="page-item {{ $TipePetis->onFirstPage() ? 'disabled' : '' }}">
<a class="page-link"
href="{{ $TipePetis->appends(['perPage' => Request::get('perPage')])->url(1) }}"
aria-label="First">
<span aria-hidden="true">First</span>
</a>
</li>
{{ $TipePetis->appends(['perPage' => Request::get('perPage')])->links() }}
<li class="page-item {{ $TipePetis->hasMorePages() ? '' : 'disabled' }}">
<a class="page-link"
href="{{ $TipePetis->appends(['perPage' => Request::get('perPage')])->url($TipePetis->lastPage()) }}"
aria-label="Last">
<span aria-hidden="true">Last</span>
</a>
</li>
</ul>
</nav>
@endif
</div>
</div>
</div>
</div>
@elseif (auth()->user()->role_id == 2)
@ -86,7 +148,8 @@
</button>
</div>
<div class="modal-body">
<form action="{{ route('dashboard.typepeti.import') }}" method="POST" enctype="multipart/form-data">
<form action="{{ route('dashboard.typepeti.import') }}" method="POST"
enctype="multipart/form-data">
@csrf
<div class="form-group">
<div class="form-group">

196
resources/views/dashboard/Master_Data/Recycle_Data/index.blade.php

@ -1,196 +0,0 @@
{{-- @extends('layouts.main')
@section('title', 'Warehouse')
@section('content')
@include('layouts.components.alert-prompt')
<div class="card shadow mb-4">
<div class="card-header py-3">
<div class="row">
<div class="col-6">
<h5 class="m-0 font-weight-bold text-primary mt-2">Recycle Data</h5>
</div>
</div>
</div>
<div class="card-body">
<div class="table-responsive">
<table class="table table-bordered" id="tablebarang" width="100%" cellspacing="0">
<thead>
<tr>
<th class="text-center" style="width: 50px;">No.</th>
<th>Kategori Data</th>
<th>Data</th>
<th>Tanggal di hapus</th>
<th class="text-center">Action</th>
</tr>
</thead>
<tbody>
@php
$norecycle = 1;
@endphp
<!-- Data Peti -->
@foreach ($peti as $data_peti)
<tr>
<td class="text-center" style="width: 50px;">{{ $norecycle++ }}</td>
<td>Data Peti</td>
<td>{{ $data_peti->fix_lot }}</td>
<td>{{ optional($data_peti->deleted_at)->format('d-m-Y') ?? '-' }}</td>
<td class="text-center">
<form
action="{{ route('dashboard.recycle_data.pulihkanData', ['id' => $data_peti->id]) }}"
method="post">
@csrf
@method('POST')
<button type="submit" class="btn btn-sm btn-success aksi-link"
onclick="return confirm('Apakah Anda yakin ingin memulihkan data ini?')">Pulihkan</button>
</form>
<!-- Hapus Permanen Data -->
<form
action="{{ route('dashboard.recycle_data.hapusPermanenData', ['id' => $data_peti->id]) }}"
method="post">
@csrf
@method('DELETE')
<button type="submit" class="btn btn-sm btn-danger aksi-link"
onclick="return confirm('Apakah Anda yakin ingin menghapus permanen data ini?')">Hapus
Permanen</button>
</form>
</td>
</tr>
@endforeach
<!-- Data Customer -->
@foreach ($customer as $data_items)
<tr>
<td class="text-center" style="width: 50px;">{{ $norecycle++ }}</td>
<td>Data Customer</td>
<td>{{ $data_items->name }}</td>
<td>{{ optional($data_items->deleted_at)->format('d-m-Y') ?? '-' }}</td>
<td class="text-center">
<form
action="{{ route('dashboard.recycle_data.pulihkanData', ['id' => $data_items->id]) }}"
method="post">
@csrf
@method('POST')
<button type="submit" class="btn btn-sm btn-success aksi-link"
onclick="return confirm('Apakah Anda yakin ingin memulihkan data ini?')">Pulihkan</button>
</form>
<!-- Hapus Permanen Data -->
<form
action="{{ route('dashboard.recycle_data.hapusPermanenData', ['id' => $data_items->id]) }}"
method="post">
@csrf
@method('DELETE')
<button type="submit" class="btn btn-sm btn-danger aksi-link"
onclick="return confirm('Apakah Anda yakin ingin menghapus permanen data ini?')">Hapus
Permanen</button>
</form>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
@endsection --}}
@extends('layouts.main')
@section('title', 'Warehouse')
@section('content')
@include('layouts.components.alert-prompt')
<div class="card shadow mb-4">
<div class="card-header py-3">
<div class="row">
<div class="col-6">
<h5 class="m-0 font-weight-bold text-primary mt-2">Recycle Data</h5>
</div>
</div>
</div>
<div class="card-body">
<div class="table-responsive">
<table class="table table-bordered" id="tablebarang" width="100%" cellspacing="0">
<thead>
<tr>
<th class="text-center" style="width: 50px;">No.</th>
<th>Kategori Data</th>
<th>Data</th>
<th>Tanggal di hapus</th>
<th class="text-center">Action</th>
</tr>
</thead>
<tbody>
@php
$norecycle = 1;
@endphp
<!-- Data Peti -->
@foreach ($peti as $data_peti)
<tr>
<td class="text-center" style="width: 50px;">{{ $norecycle++ }}</td>
<td>Data Peti</td>
<td>{{ $data_peti->fix_lot }}</td>
<td>{{ optional($data_peti->deleted_at)->format('d-m-Y') ?? '-' }}</td>
<td class="text-center">
<form
action="{{ route('dashboard.recycle_data.pulihkanData', ['model' => 'peti', 'id' => $data_peti->id]) }}"
method="post">
@csrf
@method('POST')
<button type="submit" class="btn btn-sm btn-success aksi-link"
onclick="return confirm('Apakah Anda yakin ingin memulihkan data ini?')">Pulihkan</button>
</form>
<!-- Hapus Permanen Data -->
<form
action="{{ route('dashboard.recycle_data.hapusPermanenData', ['model' => 'peti', 'id' => $data_peti->id]) }}"
method="post">
@csrf
@method('DELETE')
<button type="submit" class="btn btn-sm btn-danger aksi-link"
onclick="return confirm('Apakah Anda yakin ingin menghapus permanen data ini?')">Hapus
Permanen</button>
</form>
</td>
</tr>
@endforeach
<!-- Data Customer -->
@foreach ($customer as $data_items)
<tr>
<td class="text-center" style="width: 50px;">{{ $norecycle++ }}</td>
<td>Data Customer</td>
<td>{{ $data_items->name }}</td>
<td>{{ optional($data_items->deleted_at)->format('d-m-Y') ?? '-' }}</td>
<td class="text-center">
<form
action="{{ route('dashboard.recycle_data.pulihkanData', ['model' => 'customer', 'id' => $data_items->id]) }}"
method="post">
@csrf
@method('POST')
<button type="submit" class="btn btn-sm btn-success aksi-link"
onclick="return confirm('Apakah Anda yakin ingin memulihkan data ini?')">Pulihkan</button>
</form>
<!-- Hapus Permanen Data -->
<form
action="{{ route('dashboard.recycle_data.hapusPermanenData', ['model' => 'customer', 'id' => $data_items->id]) }}"
method="post">
@csrf
@method('DELETE')
<button type="submit" class="btn btn-sm btn-danger aksi-link"
onclick="return confirm('Apakah Anda yakin ingin menghapus permanen data ini?')">Hapus
Permanen</button>
</form>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
@endsection

59
resources/views/dashboard/Master_Data/Report/Customer/index.blade.php

@ -1,59 +0,0 @@
@extends('layouts.main')
@section('content')
<style>
.table th {
white-space: nowrap;
}
.table td {
white-space: nowrap;
}
</style>
<div class="card shadow mb-4">
<div class="card-header py-3">
<div class="row">
<div class="col-6">
<h5 class="m-0 font-weight-bold text-primary mt-2">Report Customer</h5>
</div>
<div class="col-6 text-right">
<a href="{{ route('dashboard.ReportCustomer.export') }}" class="btn btn-info btn-icon-split ml-auto"
target="_blank">
<span class="text">Export Exel</span>
</a>
</div>
</div>
</div>
<div class="card-body">
<div class="table-responsive">
<table class="table table-bordered" id="tablebarang" width="100%" cellspacing="0">
<thead>
<tr>
<th>No</th>
<th>Nama Customer</th>
<th>Kode Customer</th>
<th>Lot No</th>
<th>No. Telepon</th>
<th>Alamat</th>
</tr>
</thead>
<tbody>
@php
$noreport = 1;
@endphp
@forelse ($customers as $data_customer)
<tr>
<td class="text-center">{{ $noreport++ }}</td>
<td>{{ $data_customer->name }}</td>
<td>{{ $data_customer->code_customer }}</td>
<td>{{ $data_customer->lot_no }}</td>
<td>{{ $data_customer->no_tlp }}</td>
<td>{{ $data_customer->address }}</td>
</tr>
@empty
@endforelse
</tbody>
</table>
</div>
</div>
</div>
@endsection

53
resources/views/dashboard/Master_Data/Report/Kondisi_Peti/index.blade.php

@ -1,53 +0,0 @@
@extends('layouts.main')
@section('content')
<style>
.table th {
white-space: nowrap;
}
.table td {
white-space: nowrap;
}
</style>
<div class="card shadow mb-4">
<div class="card-header py-3">
<div class="row">
<div class="col-6">
<h5 class="m-0 font-weight-bold text-primary mt-2">Report Kondisi Peti</h5>
</div>
<div class="col-6 text-right">
<a href="{{ route('dashboard.ReportKondisiPeti.export') }}" class="btn btn-info btn-icon-split ml-auto"
target="_blank">
<span class="text">Export Exel</span>
</a>
</div>
</div>
</div>
<div class="card-body">
<div class="table-responsive">
<table class="table table-bordered" id="tablebarang" width="100%" cellspacing="0">
<thead>
<tr>
<th class="text-center" style="width: 50px">No</th>
<th>Kondisi Peti</th>
<th>Deskripsi</th>
</tr>
</thead>
<tbody>
@php
$noreport = 1;
@endphp
@forelse ($kondisiPeti as $data_kondisiPeti)
<tr>
<td class="text-center">{{ $noreport++ }}</td>
<td>{{ $data_kondisiPeti->nama_kondisi }}</td>
<td>{{ $data_kondisiPeti->deskripsi_kondisi }}</td>
</tr>
@empty
@endforelse
</tbody>
</table>
</div>
</div>
</div>
@endsection

55
resources/views/dashboard/Master_Data/Report/Tipe_Peti/index.blade.php

@ -1,55 +0,0 @@
@extends('layouts.main')
@section('content')
<style>
.table th {
white-space: nowrap;
}
.table td {
white-space: nowrap;
}
</style>
<div class="card shadow mb-4">
<div class="card-header py-3">
<div class="row">
<div class="col-6">
<h5 class="m-0 font-weight-bold text-primary mt-2">Report Tipe Peti</h5>
</div>
<div class="col-6 text-right">
<a href="{{ route('dashboard.ReportTipePeti.export') }}" class="btn btn-info btn-icon-split ml-auto"
target="_blank">
<span class="text">Export Exel</span>
</a>
</div>
</div>
</div>
<div class="card-body">
<div class="table-responsive">
<table class="table table-bordered" id="tablebarang" width="100%" cellspacing="0">
<thead>
<tr>
<th class="text-center" style="width: 50px">No</th>
<th>Tipe Peti</th>
<th>Ukuran Peti</th>
<th>Deskripsi Peti</th>
</tr>
</thead>
<tbody>
@php
$noreport = 1;
@endphp
@forelse ($tipepeti as $data_tipepeti)
<tr>
<td class="text-center">{{ $noreport++ }}</td>
<td>{{ $data_tipepeti->type }}</td>
<td>{{ $data_tipepeti->size_peti }}</td>
<td>{{ $data_tipepeti->description }}</td>
</tr>
@empty
@endforelse
</tbody>
</table>
</div>
</div>
</div>
@endsection

55
resources/views/dashboard/Master_Data/Report/Warehouse/index.blade.php

@ -1,55 +0,0 @@
@extends('layouts.main')
@section('content')
<style>
.table th {
white-space: nowrap;
}
.table td {
white-space: nowrap;
}
</style>
<div class="card shadow mb-4">
<div class="card-header py-3">
<div class="row">
<div class="col-6">
<h5 class="m-0 font-weight-bold text-primary mt-2">Report Warehouse</h5>
</div>
<div class="col-6 text-right">
<a href="{{ route('dashboard.ReportWarehouse.export') }}" class="btn btn-info btn-icon-split ml-auto"
target="_blank">
<span class="text">Export Exel</span>
</a>
</div>
</div>
</div>
<div class="card-body">
<div class="table-responsive">
<table class="table table-bordered" id="tablebarang" width="100%" cellspacing="0">
<thead>
<tr>
<th>No</th>
<th>Nama Gudang</th>
<th>Deskripsi</th>
<th>Alamat</th>
</tr>
</thead>
<tbody>
@php
$noreport = 1;
@endphp
@forelse ($warehouse as $data_warehouse)
<tr>
<td class="text-center">{{ $noreport++ }}</td>
<td>{{ $data_warehouse->name }}</td>
<td>{{ $data_warehouse->description }}</td>
<td>{{ $data_warehouse->address }}</td>
</tr>
@empty
@endforelse
</tbody>
</table>
</div>
</div>
</div>
@endsection

86
resources/views/dashboard/Master_Data/Role/index.blade.php

@ -18,8 +18,37 @@
</div>
</div>
<div class="card-body">
<div class="row">
<div class="col-6">
<!-- Fitur page -->
<form method="GET" action="{{ route('dashboard.role.index') }}">
<label for="perPage">Tampilkan:</label>
<select id="perPage" name="perPage" class="form-select" onchange="this.form.submit()">
<option value="5" {{ request('perPage', 5) == '5' ? 'selected' : '' }}>5</option>
<option value="10" {{ request('perPage', 5) == '10' ? 'selected' : '' }}>10</option>
<option value="25" {{ request('perPage', 5) == '25' ? 'selected' : '' }}>25</option>
<option value="50" {{ request('perPage', 5) == '50' ? 'selected' : '' }}>50</option>
<option value="100" {{ request('perPage', 5) == '100' ? 'selected' : '' }}>100</option>
<option value="{{ $roles->total() }}"
{{ request('perPage', 5) == $roles->total() ? 'selected' : '' }}>Semua</option>
</select>
<input type="hidden" name="search" value="{{ $search }}">
<input type="hidden" name="page" value="{{ request('page', 1) }}">
</form>
</div>
<div class="col-6 d-flex justify-content-end mb-3">
<!-- Fitur search -->
<form method="GET" action="{{ route('dashboard.role.index') }}" class="form-inline">
<input type="text" name="search" class="form-control mr-2" placeholder="Cari..."
value="{{ $search }}">
<input type="hidden" name="page" value="1">
<input type="hidden" name="perPage" value="{{ request('perPage', 5) }}">
<button type="submit" class="btn btn-primary">Cari</button>
</form>
</div>
</div>
<div class="table-responsive">
<table class="table table-bordered" id="tablebarang" width="100%" cellspacing="0">
<table class="table table-bordered" width="100%" cellspacing="0">
<thead>
<tr>
<th class="text-center" style="width: 50px;">No</th>
@ -29,14 +58,11 @@
</tr>
</thead>
<tbody>
@php
$norole = 1;
@endphp
@foreach ($role as $data_role)
@forelse ($roles as $data_role)
<tr>
<td class="text-center">{{ $norole++ }}</td>
<td>{{ $data_role->name }}</td>
<td>{{ $data_role->description }}</td>
<td class="text-center">{{ $i++ }}</td>
<td>{{ optional($data_role)->name }}</td>
<td>{{ optional($data_role)->description }}</td>
<td class="text-center">
<a href="#" data-toggle="modal"
data-target="#editDataModal{{ $data_role->id }}">
@ -54,10 +80,47 @@
</form>
</td>
</tr>
@endforeach
@empty
<tr>
<td colspan="4" class="text-center">Data Kosong</td>
</tr>
@endforelse
</tbody>
</table>
</div>
<div class="row mt-3">
<div class="col-4">
<!-- Tampilkan jumlah data yang ditampilkan -->
@if (!$roles->isEmpty())
<p class="d-inline-block">Showing {{ $roles->firstItem() }} to
{{ $roles->lastItem() }} of
{{ $roles->total() }} entries</p>
@endif
</div>
<div class="col-8 d-flex justify-content-end">
@if ($roles->total() > $roles->perPage())
<nav aria-label="Page navigation">
<ul class="pagination justify-content-center">
<li class="page-item {{ $roles->onFirstPage() ? 'disabled' : '' }}">
<a class="page-link"
href="{{ $roles->appends(['perPage' => Request::get('perPage')])->url(1) }}"
aria-label="First">
<span aria-hidden="true">First</span>
</a>
</li>
{{ $roles->appends(['perPage' => Request::get('perPage')])->links() }}
<li class="page-item {{ $roles->hasMorePages() ? '' : 'disabled' }}">
<a class="page-link"
href="{{ $roles->appends(['perPage' => Request::get('perPage')])->url($roles->lastPage()) }}"
aria-label="Last">
<span aria-hidden="true">Last</span>
</a>
</li>
</ul>
</nav>
@endif
</div>
</div>
</div>
</div>
@else
@ -90,7 +153,8 @@
<label for="description" class="col-form-label">Deskripsi Hak Akses: <span
class="text-danger">*</span></label>
<textarea class="form-control" name="description" id="description" placeholder="Masukkan Deskripsi Hak Akses" required>{{ old('description') }}</textarea>
<textarea class="form-control" name="description" id="description" placeholder="Masukkan Deskripsi Hak Akses"
required>{{ old('description') }}</textarea>
</div>
</div>
<div class="modal-footer">
@ -104,7 +168,7 @@
</div>
<!-- Edit data Modal -->
@foreach ($role as $data)
@foreach ($roles as $data)
<div class="modal fade" id="editDataModal{{ $data['id'] }}" tabindex="-1" role="dialog"
aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">

82
resources/views/dashboard/Master_Data/User/index.blade.php

@ -16,8 +16,37 @@
</div>
</div>
<div class="card-body">
<div class="row">
<div class="col-6">
<!-- Fitur page -->
<form method="GET" action="{{ route('dashboard.user.index') }}">
<label for="perPage">Tampilkan:</label>
<select id="perPage" name="perPage" class="form-select" onchange="this.form.submit()">
<option value="5" {{ request('perPage', 5) == '5' ? 'selected' : '' }}>5</option>
<option value="10" {{ request('perPage', 5) == '10' ? 'selected' : '' }}>10</option>
<option value="25" {{ request('perPage', 5) == '25' ? 'selected' : '' }}>25</option>
<option value="50" {{ request('perPage', 5) == '50' ? 'selected' : '' }}>50</option>
<option value="100" {{ request('perPage', 5) == '100' ? 'selected' : '' }}>100</option>
<option value="{{ $users->total() }}"
{{ request('perPage', 5) == $users->total() ? 'selected' : '' }}>Semua</option>
</select>
<input type="hidden" name="search" value="{{ $search }}">
<input type="hidden" name="page" value="{{ request('page', 1) }}">
</form>
</div>
<div class="col-6 d-flex justify-content-end mb-3">
<!-- Fitur search -->
<form method="GET" action="{{ route('dashboard.user.index') }}" class="form-inline">
<input type="text" name="search" class="form-control mr-2" placeholder="Cari..."
value="{{ $search }}">
<input type="hidden" name="page" value="1">
<input type="hidden" name="perPage" value="{{ request('perPage', 5) }}">
<button type="submit" class="btn btn-primary">Cari</button>
</form>
</div>
</div>
<div class="table-responsive">
<table class="table table-bordered" id="tablebarang" width="100%" cellspacing="0">
<table class="table table-bordered" width="100%" cellspacing="0">
<thead>
<tr>
<th>No</th>
@ -31,18 +60,15 @@
</tr>
</thead>
<tbody>
@php
$noUser = 1;
@endphp
@forelse ($user as $data)
@forelse ($users as $data)
<tr>
<td class="text-center">{{ $noUser++ }}</td>
<td>{{ $data->fullname }}</td>
<td>{{ $data->email }}</td>
<td class="text-center">{{ $i++ }}</td>
<td>{{ optional($data)->fullname }}</td>
<td>{{ optional($data)->email }}</td>
<td>{{ isset($data->no_hp) ? $data->no_hp : '-' }}</td>
<td>{{ isset($data->address) ? $data->address : '-' }}</td>
<td>{{ $data->warehouse->name }}</td>
<td>{{ $data->role->name }}</td>
<td>{{ optional($data)->warehouse->name }}</td>
<td>{{ optional($data)->role->name }}</td>
<td class="text-center">
<a href="{{ route('dashboard.user.show', [$data->id]) }}">
<i class="fa fa-eye mr-2" style="font-size: 20px"></i>
@ -63,10 +89,46 @@
</td>
</tr>
@empty
<tr>
<td colspan="8" class="text-center">Data Kosong</td>
</tr>
@endforelse
</tbody>
</table>
</div>
<div class="row mt-3">
<div class="col-4">
<!-- Tampilkan jumlah data yang ditampilkan -->
@if (!$users->isEmpty())
<p class="d-inline-block">Showing {{ $users->firstItem() }} to
{{ $users->lastItem() }} of
{{ $users->total() }} entries</p>
@endif
</div>
<div class="col-8 d-flex justify-content-end">
@if ($users->total() > $users->perPage())
<nav aria-label="Page navigation">
<ul class="pagination justify-content-center">
<li class="page-item {{ $users->onFirstPage() ? 'disabled' : '' }}">
<a class="page-link"
href="{{ $users->appends(['perPage' => Request::get('perPage')])->url(1) }}"
aria-label="First">
<span aria-hidden="true">First</span>
</a>
</li>
{{ $users->appends(['perPage' => Request::get('perPage')])->links() }}
<li class="page-item {{ $users->hasMorePages() ? '' : 'disabled' }}">
<a class="page-link"
href="{{ $users->appends(['perPage' => Request::get('perPage')])->url($users->lastPage()) }}"
aria-label="Last">
<span aria-hidden="true">Last</span>
</a>
</li>
</ul>
</nav>
@endif
</div>
</div>
</div>
</div>
@else

90
resources/views/dashboard/Master_Data/Warehouse/index.blade.php

@ -6,7 +6,7 @@
@if (auth()->user()->role_id == 1)
<div class="card shadow mb-4">
<nav class="navbar navbar-expand navbar-light bg-light mb-4 py-3" style="border-bottom: 1px solid #ddd;">
<nav class="navbar navbar-expand navbar-light bg-light py-3" style="border-bottom: 1px solid #ddd;">
<h5 class="m-0 font-weight-bold text-primary mt-2">Data Gudang</h5>
<ul class="navbar-nav ml-auto">
<li class="nav-item dropdown">
@ -26,8 +26,37 @@
</ul>
</nav>
<div class="card-body">
<div class="row">
<div class="col-6">
<!-- Fitur page -->
<form method="GET" action="{{ route('dashboard.warehouse.index') }}">
<label for="perPage">Tampilkan:</label>
<select id="perPage" name="perPage" class="form-select" onchange="this.form.submit()">
<option value="5" {{ request('perPage', 5) == '5' ? 'selected' : '' }}>5</option>
<option value="10" {{ request('perPage', 5) == '10' ? 'selected' : '' }}>10</option>
<option value="25" {{ request('perPage', 5) == '25' ? 'selected' : '' }}>25</option>
<option value="50" {{ request('perPage', 5) == '50' ? 'selected' : '' }}>50</option>
<option value="100" {{ request('perPage', 5) == '100' ? 'selected' : '' }}>100</option>
<option value="{{ $warehouse->total() }}"
{{ request('perPage', 5) == $warehouse->total() ? 'selected' : '' }}>Semua</option>
</select>
<input type="hidden" name="search" value="{{ $search }}">
<input type="hidden" name="page" value="{{ request('page', 1) }}">
</form>
</div>
<div class="col-6 d-flex justify-content-end mb-3">
<!-- Fitur search -->
<form method="GET" action="{{ route('dashboard.warehouse.index') }}" class="form-inline">
<input type="text" name="search" class="form-control mr-2" placeholder="Cari..."
value="{{ $search }}">
<input type="hidden" name="page" value="1">
<input type="hidden" name="perPage" value="{{ request('perPage', 5) }}">
<button type="submit" class="btn btn-primary">Cari</button>
</form>
</div>
</div>
<div class="table-responsive">
<table class="table table-bordered" id="tablebarang" width="100%" cellspacing="0">
<table class="table table-bordered" width="100%" cellspacing="0">
<thead>
<tr>
<th class="text-center" style="width: 50px;">No.</th>
@ -38,15 +67,12 @@
</tr>
</thead>
<tbody>
@php
$nowarehouses = 1;
@endphp
@foreach ($warehouses as $data)
@forelse ($warehouse as $data)
<tr>
<td class="text-center" style="width: 50px;">{{ $nowarehouses++ }}</td>
<td>{{ $data->name }}</td>
<td>{{ $data->description }}</td>
<td>{{ $data->address }}</td>
<td class="text-center" style="width: 50px;">{{ $i++ }}</td>
<td>{{ optional($data)->name }}</td>
<td>{{ optional($data)->description }}</td>
<td>{{ optional($data)->address }}</td>
<td class="text-center">
<a href="#" data-toggle="modal"
data-target="#editDataModal{{ $data['id'] }}">
@ -64,10 +90,47 @@
</form>
</td>
</tr>
@endforeach
@empty
<tr>
<td colspan="5" class="text-center">Data Kosong</td>
</tr>
@endforelse
</tbody>
</table>
</div>
<div class="row mt-3">
<div class="col-4">
<!-- Tampilkan jumlah data yang ditampilkan -->
@if (!$warehouse->isEmpty())
<p class="d-inline-block">Showing {{ $warehouse->firstItem() }} to
{{ $warehouse->lastItem() }} of
{{ $warehouse->total() }} entries</p>
@endif
</div>
<div class="col-8 d-flex justify-content-end">
@if ($warehouse->total() > $warehouse->perPage())
<nav aria-label="Page navigation">
<ul class="pagination justify-content-center">
<li class="page-item {{ $warehouse->onFirstPage() ? 'disabled' : '' }}">
<a class="page-link"
href="{{ $warehouse->appends(['perPage' => Request::get('perPage')])->url(1) }}"
aria-label="First">
<span aria-hidden="true">First</span>
</a>
</li>
{{ $warehouse->appends(['perPage' => Request::get('perPage')])->links() }}
<li class="page-item {{ $warehouse->hasMorePages() ? '' : 'disabled' }}">
<a class="page-link"
href="{{ $warehouse->appends(['perPage' => Request::get('perPage')])->url($warehouse->lastPage()) }}"
aria-label="Last">
<span aria-hidden="true">Last</span>
</a>
</li>
</ul>
</nav>
@endif
</div>
</div>
</div>
</div>
@elseif(auth()->user()->role_id == 2)
@ -86,7 +149,8 @@
</button>
</div>
<div class="modal-body">
<form action="{{ route('dashboard.warehouse.import') }}" method="POST" enctype="multipart/form-data">
<form action="{{ route('dashboard.warehouse.import') }}" method="POST"
enctype="multipart/form-data">
@csrf
<div class="form-group">
<div class="form-group">
@ -152,7 +216,7 @@
</div>
<!-- Modal Edit Data-->
@foreach ($warehouses as $data)
@foreach ($warehouse as $data)
<div class="modal fade" id="editDataModal{{ $data['id'] }}" tabindex="-1" role="dialog"
aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">

17
resources/views/dashboard/Peminjaman/create.blade.php

@ -1,5 +1,4 @@
@extends('layouts.main')
@section('title', 'Tambah Peminjaman')
@section('content')
@include('layouts.components.alert-prompt')
<!-- Cara Baru -->
@ -7,7 +6,7 @@
<div class="card-header py-3">
<div class="row">
<div class="col-6">
<h5 class="m-0 font-weight-bold text-primary mt-2">Tambah Peminjaman</h5>
<h5 class="m-0 font-weight-bold text-primary mt-2">Tambah Peti Out</h5>
</div>
</div>
</div>
@ -162,24 +161,24 @@
});
</script>
<!-- otomatis tgl otomatis 1 minggu setelah pembuatan peminjaman -->
<!-- otomatis tgl otomatis 1 minggu setelah pembuatan Peti Out -->
<script>
// Mendapatkan elemen input tanggal peminjaman
// Mendapatkan elemen input tanggal Peti Out
const exitDateInput = document.getElementById('exit_at');
// Mendapatkan elemen input estimasi tanggal pengembalian
// Mendapatkan elemen input estimasi tanggal Peti In
const estimatedReturnDateInput = document.getElementById('est_pengembalian');
// Menambahkan event listener ke input tanggal peminjaman
// Menambahkan event listener ke input tanggal Peti Out
exitDateInput.addEventListener('input', function() {
// Mendapatkan tanggal peminjaman dalam format tanggal JavaScript
// Mendapatkan tanggal Peti Out dalam format tanggal JavaScript
const exitDate = new Date(this.value);
// Menghitung tanggal estimasi pengembalian (7 hari setelah tanggal peminjaman)
// Menghitung tanggal estimasi Peti In (7 hari setelah tanggal Peti Out)
const estimatedReturnDate = new Date(exitDate);
estimatedReturnDate.setDate(exitDate.getDate() + 7);
// Mengisi nilai estimasi tanggal pengembalian
// Mengisi nilai estimasi tanggal Peti In
estimatedReturnDateInput.valueAsDate = estimatedReturnDate;
});
</script>

3
resources/views/dashboard/Peminjaman/edit.blade.php

@ -1,12 +1,11 @@
@extends('layouts.main')
@section('title', 'Edit Peminjaman')
@section('content')
@include('layouts.components.alert-prompt')
<div class="card shadow mb-4">
<div class="card-header py-3">
<div class="row">
<div class="col-6">
<h5 class="m-0 font-weight-bold text-primary mt-2">Edit Peminjaman</h5>
<h5 class="m-0 font-weight-bold text-primary mt-2">Edit Peti Out</h5>
</div>
</div>
</div>

7
resources/views/dashboard/Peminjaman/index.blade.php

@ -15,17 +15,17 @@
<div class="card-header py-3">
<div class="row">
<div class="col-6">
<h5 class="m-0 font-weight-bold text-primary mt-2">Data Peminjaman</h5>
<h5 class="m-0 font-weight-bold text-primary mt-2">Data Peti Out</h5>
</div>
<div class="col-6 text-right">
<a href="{{ route('dashboard.peminjaman.create') }}" class="btn btn-success btn-icon-split">
<span class="text">Tambah Peminjaman</span>
<span class="text">Tambah Peti Out</span>
</a>
</div>
</div>
</div>
<div class="card-body">
<div class="row mb-3">
<div class="row">
<div class="col-6">
<!-- Fitur page -->
<form method="GET" action="{{ route('dashboard.peminjaman.index') }}">
@ -74,7 +74,6 @@
<tbody>
@forelse ($peminjaman as $data_peminjaman)
<tr>
{{-- <td class="text-center">{{ $no_peminjaman++ }}</td> --}}
<td class="text-center">{{ $i++ }}</td>
<td>{{ $data_peminjaman->peti->fix_lot }}</td>
<td>{{ $data_peminjaman->peti->customer->name }}</td>

4
resources/views/dashboard/Pengembalian/index.blade.php

@ -14,12 +14,12 @@
<div class="card-header py-3">
<div class="row">
<div class="col-6">
<h5 class="m-0 font-weight-bold text-primary mt-2">Data Pengembalian</h5>
<h5 class="m-0 font-weight-bold text-primary mt-2">Data Peti In</h5>
</div>
</div>
</div>
<div class="card-body">
<div class="row mb-3">
<div class="row">
<div class="col-6">
<!-- Fitur page -->
<form method="GET" action="{{ route('dashboard.pengembalian.index') }}">

77
resources/views/dashboard/Transaksi/edit.blade.php

@ -1,77 +0,0 @@
@extends('layouts.main')
@section('title', 'Update Data Pengembalian')
@section('content')
@include('layouts.components.alert-prompt')
<div class="card shadow mb-4">
<div class="card-header py-3">
<div class="row">
<div class="col-6">
<h5 class="m-0 font-weight-bold text-primary mt-2">Update Pengembalian</h5>
</div>
</div>
</div>
<div class="card-body">
<form action="{{ route('dashboard.pengembalian.update', [$peminjaman->id]) }}" method="POST"
enctype="multipart/form-data" id="editForm">
@csrf
@method('PUT')
<div class="form-group">
<label for="peti_id" class="col-form-label">Pilih Detail Peti:</label>
<div>
<input class="form-control" hidden name="peti_id" type="text" id="peti_id"
value="{{ $peminjaman->peti_id }}" readonly>
<input class="form-control" value="{{ $peminjaman->peti->fix_lot }}" readonly>
</div>
<label for="exit_at" class="col-form-label">Tanggal Peminjaman:</label>
<input class="form-control" name="exit_at" type="date" id="exit_at"
value="{{ $peminjaman->exit_at }}" readonly>
<label for="est_pengembalian" class="col-form-label">Estimasi Tanggal Pengembalian:</label>
<input class="form-control" name="est_pengembalian" type="date" id="est_pengembalian"
value="{{ $peminjaman->est_pengembalian }}" readonly>
<label for="exit_warehouse" class="col-form-label">Asal Gudang :</label>
<div>
<input class="form-control" hidden name="exit_warehouse" type="text" id="exit_warehouse"
value="{{ $peminjaman->exit_warehouse }}" readonly>
<input class="form-control" value="{{ $peminjaman->warehouse->name }}" readonly>
</div>
<label for="enter_at" class="col-form-label">Tanggal Pengembalian: <span
class="text-danger">*</span></label>
<input class="form-control" name="enter_at" type="date" id="enter_at"
value="{{ \Carbon\Carbon::parse($peminjaman->enter_at)->format('Y-m-d') }}" required>
<label for="enter_warehouse" class="col-form-label">Tujuan Pengembalian Gudang: <span
class="text-danger">*</span></label>
<select class="form-control" name="enter_warehouse" type="text" id="enter_warehouse" required>
<option disabled selected>Pilih Tujuan Gudang</option>
@foreach ($warehouse as $data_warehouse)
<option value="{{ $data_warehouse->id }}"
@if ($data_warehouse->id == $peminjaman->enter_warehouse) selected
@else @endif>
{{ $data_warehouse->name }}</option>
@endforeach
</select>
<label for="kondisi_peti" class="col-form-label">Kondisi Peti: <span
class="text-danger">*</span></label>
<input class="form-control" name="kondisi_peti" type="text" id="kondisi_peti"
value="{{ old('kondisi_peti', $peminjaman->kondisi_peti) }}" placeholder="Masukan kondisi peti"
pattern="[^0-9]+" oninput="this.value=this.value.replace(/[0-9]/g,'');" required>
</div>
<div class="modal-footer d-flex justify-content-center">
<a href="{{ route('dashboard.pengembalian.index') }}" class="btn btn-secondary">Kembali</a>
<button type="submit" class="btn btn-primary" id="submitButton">Simpan</button>
</div>
</form>
</div>
</div>
<script>
document.getElementById('editForm').addEventListener('submit', function() {
document.getElementById('submitButton').setAttribute('disabled', 'true');
});
</script>
@endsection

102
resources/views/dashboard/Transaksi/index.blade.php

@ -1,102 +0,0 @@
@extends('layouts.main')
@section('content')
@include('layouts.components.alert-prompt')
<style>
.table th {
white-space: nowrap;
}
.table td {
white-space: nowrap;
}
</style>
@if (auth()->user()->role_id == 1)
<div class="card shadow mb-4">
<div class="card-header py-3">
<h6 class="m-0 font-weight-bold text-primary">Data Pengembalian</h6>
</div>
<div class="card-body">
<div class="table-responsive">
<table class="table table-bordered" id="tablebarang" width="100%" cellspacing="0">
<thead>
<tr>
<th>No</th>
<th>Kode Peti</th>
<th>Customer</th>
<th>Tgl Peinjaman</th>
<th>Estimasi Pengembalian</th>
<th>PJ Peminjaman</th>
<th>Asal WH Peminjaman</th>
<th>Tgl Pengembalian</th>
<th>PJ Pengembalian</th>
<th>Tujuan WH Pengembalian</th>
<th>Kondisi Peti</th>
<th>Status</th>
<th class="text-center">Action</th>
</tr>
</thead>
<tbody>
@php
$no_peminjaman = 1;
@endphp
@forelse ($peminjaman as $data)
<tr>
<td>{{ $no_peminjaman++ }}</td>
<td>{{ $data->peti->fix_lot }}</td>
<td>{{ $data->peti->customer->name }}</td>
<td>{{ \Carbon\Carbon::parse($data->exit_at)->format('d/m/Y') }}</td>
<td>{{ \Carbon\Carbon::parse($data->est_pengembalian)->format('d/m/Y') }}</td>
<td>{{ $data->exit_pic }}</td>
<td>{{ $data->warehouse->name }}</td>
<td>
@if ($data->enter_at)
{{ \Carbon\Carbon::parse($data->enter_at)->format('d-m-Y') }}
@else
<p class="text-center font-weight-bold">-</p>
@endif
</td>
<td>
@if ($data->enter_pic)
{{ $data->enter_pic }}
@else
<p class="text-center font-weight-bold">-</p>
@endif
</td>
<td>
@if ($data->enter_warehouse)
{{ $data->warehouse->name }}
@else
<p class="text-center font-weight-bold">-</p>
@endif
</td>
<td>
@if ($data->kondisi_peti)
{{ $data->kondisi_peti }}
@else
<p class="text-center font-weight-bold">-</p>
@endif
</td>
<td>
@if ($data->enter_warehouse === null)
Not Return
@else
Return
@endif
</td>
<td class="text-center">
<a href="{{ route('dashboard.pengembalian.edit', [$data->id]) }}" title="Edit">
<i class="fa fa-edit mr-2" style="font-size: 20px"></i>
</a>
</td>
</tr>
@empty
@endforelse
</tbody>
</table>
</div>
</div>
</div>
@else
@include('pages.user.Pengembalian.index')
@endif
@endsection

88
resources/views/dashboard/Transfer/index.blade.php

@ -24,12 +24,41 @@
</div>
</div>
<div class="card-body">
<div class="row">
<div class="col-6">
<!-- Fitur page -->
<form method="GET" action="{{ route('dashboard.transfer.index') }}">
<label for="perPage">Tampilkan:</label>
<select id="perPage" name="perPage" class="form-select" onchange="this.form.submit()">
<option value="5" {{ request('perPage', 5) == '5' ? 'selected' : '' }}>5</option>
<option value="10" {{ request('perPage', 5) == '10' ? 'selected' : '' }}>10</option>
<option value="25" {{ request('perPage', 5) == '25' ? 'selected' : '' }}>25</option>
<option value="50" {{ request('perPage', 5) == '50' ? 'selected' : '' }}>50</option>
<option value="100" {{ request('perPage', 5) == '100' ? 'selected' : '' }}>100</option>
<option value="{{ $transfer->total() }}"
{{ request('perPage', 5) == $transfer->total() ? 'selected' : '' }}>Semua</option>
</select>
<input type="hidden" name="search" value="{{ $search }}">
<input type="hidden" name="page" value="{{ request('page', 1) }}">
</form>
</div>
<div class="col-6 d-flex justify-content-end mb-3">
<!-- Fitur search -->
<form method="GET" action="{{ route('dashboard.transfer.index') }}" class="form-inline">
<input type="text" name="search" class="form-control mr-2" placeholder="Cari..."
value="{{ $search }}">
<input type="hidden" name="page" value="1">
<input type="hidden" name="perPage" value="{{ request('perPage', 5) }}">
<button type="submit" class="btn btn-primary">Cari</button>
</form>
</div>
</div>
<div class="table-responsive">
<table class="table table-bordered" id="tablebarang" width="100%" cellspacing="0">
<table class="table table-bordered" width="100%" cellspacing="0">
<thead>
<tr>
<th class="text-center">No</th>
<th>Kode Peti</th>
<th>Fix Lot</th>
<th>Nama Customer</th>
<th>Tgl Transfer</th>
<th>Asal Gudang</th>
@ -38,18 +67,14 @@
</tr>
</thead>
<tbody>
@php
$notransfer = 1;
@endphp
@foreach ($transfer as $data_transfer)
@forelse ($transfer as $data_transfer)
<tr>
<td>{{ $notransfer++ }}</td>
{{-- <td>{{ $data_transfer->peti->fix_lot }}</td> --}}
<td>{{ $i++ }}</td>
<td>{{ optional($data_transfer->peti)->fix_lot }}</td>
<td>{{ $data_transfer->customer->name ?? '' }}</td>
<td>{{ \Carbon\Carbon::parse($data_transfer->date)->format('d/m/Y') }}</td>
<td>{{ $data_transfer->sourceWarehouse->name ?? '' }}</td>
<td>{{ $data_transfer->destinationWarehouse->name }}</td>
<td>{{ optional($data_transfer->customer)->name }}</td>
<td>{{ \Carbon\Carbon::parse($data_transfer->date)->format('d-m-Y') }}</td>
<td>{{ optional($data_transfer->sourceWarehouse)->name }}</td>
<td>{{ optional($data_transfer->destinationWarehouse)->name }}</td>
<td class="text-center">
<a href="{{ route('dashboard.transfer.edit', $data_transfer->id) }}" title="Edit">
<i class="fa fa-edit mr-2" style="font-size: 20px"></i>
@ -66,10 +91,47 @@
</form>
</td>
</tr>
@endforeach
@empty
<tr>
<td colspan="7" class="text-center">Data Kosong</td>
</tr>
@endforelse
</tbody>
</table>
</div>
<div class="row mt-3">
<div class="col-4">
<!-- Tampilkan jumlah data yang ditampilkan -->
@if (!$transfer->isEmpty())
<p class="d-inline-block">Showing {{ $transfer->firstItem() }} to
{{ $transfer->lastItem() }} of
{{ $transfer->total() }} entries</p>
@endif
</div>
<div class="col-8 d-flex justify-content-end">
@if ($transfer->total() > $transfer->perPage())
<nav aria-label="Page navigation">
<ul class="pagination justify-content-center">
<li class="page-item {{ $transfer->onFirstPage() ? 'disabled' : '' }}">
<a class="page-link"
href="{{ $transfer->appends(['perPage' => Request::get('perPage')])->url(1) }}"
aria-label="First">
<span aria-hidden="true">First</span>
</a>
</li>
{{ $transfer->appends(['perPage' => Request::get('perPage')])->links() }}
<li class="page-item {{ $transfer->hasMorePages() ? '' : 'disabled' }}">
<a class="page-link"
href="{{ $transfer->appends(['perPage' => Request::get('perPage')])->url($transfer->lastPage()) }}"
aria-label="Last">
<span aria-hidden="true">Last</span>
</a>
</li>
</ul>
</nav>
@endif
</div>
</div>
</div>
</div>
@endsection

67
resources/views/dashboard/index.blade.php

@ -36,7 +36,7 @@
<div class="col mr-2">
<div class="text-xs font-weight-bold text-success text-uppercase mb-1"
style="font-size: 14px;">
<strong>Peminjaman</strong>
<strong>Peti Out</strong>
</div>
<div class="h5 mb-0 font-weight-bold text-gray-800" style="font-size: 25px;">
{{ $jumlahPeminjaman }}</div>
@ -57,7 +57,7 @@
<div class="col mr-2">
<div class="text-xs font-weight-bold text-info text-uppercase mb-1"
style="font-size: 14px;">
<strong>Pengembalian</strong>
<strong>Peti In</strong>
</div>
<div class="h5 mb-0 font-weight-bold text-gray-800" style="font-size: 25px;">
{{ $jumlahPengembalian }}</div>
@ -78,7 +78,7 @@
<div class="col mr-2">
<div class="text-xs font-weight-bold text-warning text-uppercase mb-1"
style="font-size: 13px;">
<strong>Reminder Pengembalian</strong>
<strong>Reminder Peti In</strong>
</div>
<div class="h5 mb-0 font-weight-bold text-gray-800" style="font-size: 25px;">
{{ $reminder }}</div>
@ -95,60 +95,7 @@
<div class="col-6">
<div class="card shadow mb-4" style="height: 600px;">
<div class="card-header py-3 d-flex flex-row align-items-center justify-content-between">
<h6 class="m-0 font-weight-bold text-primary">Grafik Peminjaman VS Pengembalian</h6>
</div>
@php
$chartData = app('App\Http\Controllers\HomeController')->generateChartData();
@endphp
<div class="card-body" style="height: 100%; display: flex; flex-direction: column;">
<label for="yearFilter">Pilih Tahun:</label>
<select id="yearFilter" class="form-control">
@foreach ($chartData['years'] as $year)
@if ($chartData['exitData'][$loop->index] || $chartData['enterData'][$loop->index])
<option value="{{ $year }}">{{ $year }}</option>
@endif
@endforeach
</select>
<!-- Add a container div for the chart with 100% height -->
<div id="chartContainer" style="position: relative; flex: 1;">
<canvas id="ChartAssetStatus"></canvas>
</div>
</div>
</div>
</div>
<div class="col-6">
<div class="card shadow mb-4" style="height: 600px;">
<!-- Card Header - Dropdown -->
<div class="card-header py-3 d-flex flex-row align-items-center justify-content-between">
<h6 class="m-0 font-weight-bold text-primary">Grafik Pengadaan Peti</h6>
</div>
@php
$chartDataPie = app('App\Http\Controllers\HomeController')->generateChartDataPie();
@endphp
<div class="card-body" style="height: 100%; display: flex; flex-direction: column;">
<label for="yearFilterPie">Pilih Tahun:</label>
<select id="yearFilterPie" class="form-control">
@foreach ($chartDataPie['years'] as $year)
@if (count($chartDataPie['enterData']) > 0 && $chartDataPie['enterData'][$loop->index])
<option value="{{ $year }}">{{ $year }}</option>
@endif
@endforeach
</select>
<div id="chartContainerPie" style="position: relative; flex: 1;">
<canvas id="myPieChartsiopas"></canvas>
</div>
</div>
</div>
</div>
</div> --}}
{{-- <div class="row" style="height: 100%;">
<div class="col-6">
<div class="card shadow mb-4" style="height: 600px;">
<div class="card-header py-3 d-flex flex-row align-items-center justify-content-between">
<h6 class="m-0 font-weight-bold text-primary">Grafik Peminjaman VS Pengembalian</h6>
<h6 class="m-0 font-weight-bold text-primary">Grafik Peti Out VS Peti In</h6>
</div>
@php
$chartData = app('App\Http\Controllers\HomeController')->generateChartData();
@ -202,7 +149,7 @@
<div class="col-6">
<div class="card shadow mb-4" style="height: 600px;">
<div class="card-header py-3 d-flex flex-row align-items-center justify-content-between">
<h6 class="m-0 font-weight-bold text-primary">Grafik Peminjaman VS Pengembalian</h6>
<h6 class="m-0 font-weight-bold text-primary">Grafik Peti Out VS Peti In</h6>
</div>
@php
$chartData = app('App\Http\Controllers\HomeController')->generateChartData();
@ -384,14 +331,14 @@
data: {
labels: chartData.monthNames,
datasets: [{
label: 'Peminjaman',
label: 'Peti Out',
data: chartData.exitData[0],
backgroundColor: 'rgba(75, 192, 192, 0.2)',
borderColor: 'rgba(75, 192, 192, 1)',
borderWidth: 1
},
{
label: 'Pengembalian',
label: 'Peti In',
data: chartData.enterData[0],
backgroundColor: 'rgba(255, 159, 64, 0.2)',
borderColor: 'rgba(255, 159, 64, 1)',

2
resources/views/layouts/components/alert-prompt.blade.php

@ -27,6 +27,6 @@
$(".alert.alert-danger, .alert.alert-success").fadeOut(500, function() {
$(this).remove();
});
}, 5000); // 5 detik
}, 3000); // 5 detik
});
</script>

4
resources/views/layouts/link.blade.php

@ -1,9 +1,9 @@
<!-- Custom fonts for this template-->
<link href="{{ asset('assets/vendor/fontawesome-free/css/all.min.css') }}" rel="stylesheet" type="text/css">
<link href="{{ asset('assets/vendor/fontawesome-free/css/custom.min.css') }}" rel="stylesheet" type="text/css">
{{-- <link href="{{ asset('assets/vendor/fontawesome-free/css/custom.min.css') }}" rel="stylesheet" type="text/css"> --}}
<link rel="stylesheet"
href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,700i,800,800i,900,900i">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
{{-- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css"> --}}
<!-- Custom styles for this template-->
<link href="{{ asset('assets/css/sb-admin-2.min.css') }}" rel="stylesheet">

8
resources/views/layouts/main.blade.php

@ -55,7 +55,7 @@
@include('layouts.script')
<!-- pengaturan datatables -->
{{-- <!-- pengaturan datatables -->
<script>
$(document).ready(function() {
$('#tablebarang').DataTable({
@ -75,11 +75,11 @@
dom: '<"top"lf<"clear">>rt<"bottom"ip<"clear">>', // Susunan elemen tabel
});
});
</script>
</script> --}}
<!-- End pengaturan datatables -->
<!-- Batas waktu alert -->
{{-- <!-- Batas waktu alert -->
<script>
// Hapus alert setelah 3 detik
setTimeout(function() {
@ -89,7 +89,7 @@
}
}, 3000); // 3000 milidetik = 3 detik
</script>
<!-- Batas waktu alert -->
<!-- Batas waktu alert --> --}}
<!-- update data foto -->
<script>

8
resources/views/layouts/script.blade.php

@ -6,18 +6,18 @@
<!-- Custom scripts for all pages-->
<script src="{{ asset('assets/js/sb-admin-2.min.js') }}"></script>
<!-- Page level plugins -->
<script src="{{ asset('assets/vendor/chart.js/Chart.min.js') }}"></script>
{{-- <script src="{{ asset('assets/vendor/chart.js/Chart.min.js') }}"></script> --}}
<script src="{{ asset('assets/vendor/datatables/jquery.dataTables.min.js') }}"></script>
<script src="{{ asset('assets/vendor/datatables/dataTables.bootstrap4.min.js') }}"></script>
<!-- Page level custom scripts -->
<script src="{{ asset('assets/js/demo/chart-area-demo.js') }}"></script>
{{-- <script src="{{ asset('assets/js/demo/chart-area-demo.js') }}"></script>
<script src="{{ asset('assets/js/demo/chart-pie-demo.js') }}"></script>
<script src="{{ asset('assets/js/demo/chart-bar-demo.js') }}"></script>
<script src="{{ asset('assets/js/demo/datatables-demo.js') }}"></script>
<script src="{{ asset('assets/js/demo/datatables-demo.js') }}"></script> --}}
<!-- untuk update foto profile -->
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
{{-- <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script> --}}
<!-- tabah sendiri -->
<!-- untuk pengaturan datatables -->

34
resources/views/layouts/sidebar.blade.php

@ -4,7 +4,6 @@
<a class="sidebar-brand d-flex align-items-center justify-content-center"
href="{{ route('dashboard.home.admin') }}">
<div class="sidebar-brand-icon">
{{-- <i class="fas fa-laugh-wink"></i> --}}
<img src="{{ asset('assets/img/logo_istw.png') }}" alt="Tachometer Icon" width="70" height="70"
class="mb-2 mt-2">
</div>
@ -27,8 +26,9 @@
<!-- Transaction -->
<li
class="nav-item {{ $active == 'menu-peminjaman' || $active == 'menu-pengembalian' || $active == 'menu-transfer' ? 'active' : '' }}">
<a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#collapseTransaksi"
aria-expanded="true" aria-controls="collapseTransaksi">
<a class="nav-link {{ !($active == 'menu-peminjaman' || $active == 'menu-pengembalian' || $active == 'menu-transfer') ? 'collapsed' : '' }}"
href="#" data-toggle="collapse" data-target="#collapseTransaksi" aria-expanded="true"
aria-controls="collapseTransaksi">
<i class="fas fa-fw fa-exchange-alt"></i>
<span>Transaksi</span>
</a>
@ -57,8 +57,9 @@
<!-- Histories -->
<li
class="nav-item {{ $active == 'history-peminjaman' || $active == 'history-pengembalian' || $active == 'history-transfer' ? 'active' : '' }}">
<a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#collapsehistory"
aria-expanded="true" aria-controls="collapsehistory">
<a class="nav-link {{ !($active == 'history-peminjaman' || $active == 'history-pengembalian' || $active == 'history-transfer') ? 'collapsed' : '' }}"
href="#" data-toggle="collapse" data-target="#collapsehistory" aria-expanded="true"
aria-controls="collapsehistory">
<i class="fas fa-history"></i>
<span>History</span>
</a>
@ -86,8 +87,9 @@
<!-- User -->
<li class="nav-item {{ $active == 'menu-user' || $active == 'menu-role' ? 'active' : '' }}">
<a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#collapseUser"
aria-expanded="true" aria-controls="collapseUser">
<a class="nav-link {{ !($active == 'menu-user' || $active == 'menu-role') ? 'collapsed' : '' }}"
href="#" data-toggle="collapse" data-target="#collapseUser" aria-expanded="true"
aria-controls="collapseUser">
<i class="fas fa-fw fa-users"></i>
<span>Manajemen User</span>
</a>
@ -114,8 +116,9 @@
<!-- Peti -->
<li
class="nav-item {{ $active == 'menu-typepeti' || $active == 'enu-kondisipeti' || $active == 'menu-peti' ? 'active' : '' }}">
<a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#collapsePeti"
aria-expanded="true" aria-controls="collapsePeti">
<a class="nav-link {{ !($active == 'menu-typepeti' || $active == 'menu-kondisipeti' || $active == 'menu-peti') ? 'collapsed' : '' }}"
href="#" data-toggle="collapse" data-target="#collapsePeti" aria-expanded="true"
aria-controls="collapsePeti">
<i class="fas fa-fw fa-box"></i>
<span>Manajemen Peti</span>
</a>
@ -144,8 +147,9 @@
<li
class="nav-item {{ $active == 'menu-Pettern_Lot_Peti' || $active == 'menu-Stok_Opname' ? 'active' : '' }}">
<a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#collapsereport"
aria-expanded="true" aria-controls="collapsereport">
<a class="nav-link {{ !($active == 'menu-Pettern_Lot_Peti' || $active == 'menu-Stok_Opname') ? 'collapsed' : '' }}"
href="#" data-toggle="collapse" data-target="#collapsereport" aria-expanded="true"
aria-controls="collapsereport">
<i class="fas fa-fw fa-file-alt"></i>
<span>Report</span>
</a>
@ -157,14 +161,6 @@
href="{{ route('dashboard.Pettern_Lot_Peti.index') }}">Report Peti</a>
<a class="collapse-item {{ $active == 'menu-Stok_Opname' ? 'active' : '' }}"
href="{{ route('dashboard.StokOpname.index') }}">Stok Opname</a>
{{-- <a class="collapse-item {{ $active == 'menu-ReportCustomer' ? 'active' : '' }}"
href="{{ route('dashboard.ReportCustomer.index') }}">Customer</a> --}}
{{-- <a class="collapse-item {{ $active == 'menu-ReportWarehouse' ? 'active' : '' }}"
href="{{ route('dashboard.ReportWarehouse.index') }}">Warehouse</a> --}}
{{-- <a class="collapse-item {{ $active == 'menu-ReportKondisiPeti' ? 'active' : '' }}"
href="{{ route('dashboard.ReportKondisiPeti.index') }}">Kondisi Peti</a> --}}
{{-- <a class="collapse-item {{ $active == 'menu-ReportTypePeti' ? 'active' : '' }}"
href="{{ route('dashboard.ReportTipePeti.index') }}">Tipe Peti</a> --}}
</div>
</div>
</li>

6
routes/web.php

@ -14,14 +14,12 @@ use App\Http\Controllers\WarehouseController;
use App\Http\Controllers\PeminjamanController;
use App\Http\Controllers\Report\StokOpNameController;
use App\Http\Controllers\KondisiPetiController;
use App\Http\Controllers\RecycleDataController;
use App\Http\Controllers\PengembalianController;
use App\Http\Controllers\Report\PetternLotPetiController;
use App\Http\Controllers\Report\ReportCustomerController;
use App\Http\Controllers\Report\ReportKondisiPetiController;
use App\Http\Controllers\Report\ReportTipePetiController;
use App\Http\Controllers\Report\ReportWarehouseController;
use App\Http\Controllers\TransaksiKeluarMasukController;
/*
|--------------------------------------------------------------------------
@ -116,7 +114,6 @@ Route::prefix('dashboard')->name('dashboard.')->middleware(['auth'])->group(func
Route::get('history/transfer', 'historyTransfer')->name('history.historyTransfer');
});
//Halaman User
Route::controller(M_userController::class)->group(function () {
Route::get('user', 'index')->name('user.index');
@ -157,7 +154,6 @@ Route::prefix('dashboard')->name('dashboard.')->middleware(['auth'])->group(func
Route::post('kondisipeti/import', 'importKondisiPeti')->name('kondisipeti.import');
});
//Halaman Type Peti
Route::controller(TypePetiController::class)->group(function () {
Route::get('typepeti', 'index')->name('typepeti.index');
@ -214,7 +210,7 @@ Route::prefix('dashboard')->name('dashboard.')->middleware(['auth'])->group(func
Route::get('ReportCustomer', 'index')->name('ReportCustomer.index');
});
//halaman Report Customer
//halaman Report Warehouse
Route::controller(ReportWarehouseController::class)->group(function () {
Route::get('ReportWarehouse/export', 'export')->name('ReportWarehouse.export');
Route::get('ReportWarehouse', 'index')->name('ReportWarehouse.index');

Loading…
Cancel
Save