You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
196 lines
10 KiB
196 lines
10 KiB
{{-- @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
|
|
|