|
|
@ -1,5 +1,15 @@ |
|
|
|
@extends('layouts.main') |
|
|
|
@extends('layouts.main') |
|
|
|
@section('content') |
|
|
|
@section('content') |
|
|
|
|
|
|
|
<style> |
|
|
|
|
|
|
|
.table th { |
|
|
|
|
|
|
|
white-space: nowrap; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.table td { |
|
|
|
|
|
|
|
white-space: nowrap; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
</style> |
|
|
|
|
|
|
|
|
|
|
|
@include('layouts.components.alert-prompt') |
|
|
|
@include('layouts.components.alert-prompt') |
|
|
|
@if (auth()->user()->role_id == 1) |
|
|
|
@if (auth()->user()->role_id == 1) |
|
|
|
<div class="card shadow mb-4"> |
|
|
|
<div class="card shadow mb-4"> |
|
|
@ -24,6 +34,7 @@ |
|
|
|
<th class="text-center">No</th> |
|
|
|
<th class="text-center">No</th> |
|
|
|
<th>Kode Peti</th> |
|
|
|
<th>Kode Peti</th> |
|
|
|
<th>Nama Customer</th> |
|
|
|
<th>Nama Customer</th> |
|
|
|
|
|
|
|
<th>Kode</th> |
|
|
|
<th>Tgl Peminjaman</th> |
|
|
|
<th>Tgl Peminjaman</th> |
|
|
|
<th>PJ Peminjaman</th> |
|
|
|
<th>PJ Peminjaman</th> |
|
|
|
<th>Asal Gudang</th> |
|
|
|
<th>Asal Gudang</th> |
|
|
@ -35,11 +46,41 @@ |
|
|
|
$no_peminjaman = 1; |
|
|
|
$no_peminjaman = 1; |
|
|
|
@endphp |
|
|
|
@endphp |
|
|
|
@forelse ($peminjaman as $data_peminjaman) |
|
|
|
@forelse ($peminjaman as $data_peminjaman) |
|
|
|
|
|
|
|
@if ($data_peminjaman->enter_warehouse == null) |
|
|
|
<tr> |
|
|
|
<tr> |
|
|
|
<td class="text-center">{{ $no_peminjaman++ }}</td> |
|
|
|
<td class="text-center">{{ $no_peminjaman++ }}</td> |
|
|
|
|
|
|
|
<td>{{ $data_peminjaman->peti->fix_lot }}</td> |
|
|
|
|
|
|
|
<td>{{ $data_peminjaman->peti->customer->name }}</td> |
|
|
|
<td>{{ $data_peminjaman->peti->customer->code_customer }} - |
|
|
|
<td>{{ $data_peminjaman->peti->customer->code_customer }} - |
|
|
|
{{ $data_peminjaman->peti->tipe_peti->type }}</td> |
|
|
|
{{ $data_peminjaman->peti->tipe_peti->type }}</td> |
|
|
|
|
|
|
|
<td>{{ \Carbon\Carbon::parse($data_peminjaman->exit_at)->format('d/m/Y') }}</td> |
|
|
|
|
|
|
|
<td>{{ $data_peminjaman->exit_pic }}</td> |
|
|
|
|
|
|
|
<td>{{ $data_peminjaman->warehouse->name }}</td> |
|
|
|
|
|
|
|
<td class="text-center"> |
|
|
|
|
|
|
|
<a href="{{ route('dashboard.peminjaman.edit', $data_peminjaman->id) }}" |
|
|
|
|
|
|
|
title="Edit"> |
|
|
|
|
|
|
|
<i class="fa fa-edit mr-2" style="font-size: 20px"></i> |
|
|
|
|
|
|
|
</a> |
|
|
|
|
|
|
|
<form |
|
|
|
|
|
|
|
action="{{ route('dashboard.peminjaman.destroy', $data_peminjaman->id) }}" |
|
|
|
|
|
|
|
method="POST" style="display: inline;"> |
|
|
|
|
|
|
|
@csrf |
|
|
|
|
|
|
|
@method('DELETE') |
|
|
|
|
|
|
|
<button type="submit" |
|
|
|
|
|
|
|
onclick="return confirm('Apakah Anda yakin ingin menghapus data ini?')" |
|
|
|
|
|
|
|
title="Delete" style="border: none; background: none; cursor: pointer;"> |
|
|
|
|
|
|
|
<i class="fa fa-trash text-danger" style="font-size: 20px"></i> |
|
|
|
|
|
|
|
</button> |
|
|
|
|
|
|
|
</form> |
|
|
|
|
|
|
|
</td> |
|
|
|
|
|
|
|
</tr> |
|
|
|
|
|
|
|
@endif |
|
|
|
|
|
|
|
{{-- <tr> |
|
|
|
|
|
|
|
<td class="text-center">{{ $no_peminjaman++ }}</td> |
|
|
|
|
|
|
|
<td>{{ $data_peminjaman->peti->fix_lot }}</td> |
|
|
|
<td>{{ $data_peminjaman->peti->customer->name }}</td> |
|
|
|
<td>{{ $data_peminjaman->peti->customer->name }}</td> |
|
|
|
|
|
|
|
<td>{{ $data_peminjaman->peti->customer->code_customer }} - |
|
|
|
|
|
|
|
{{ $data_peminjaman->peti->tipe_peti->type }}</td> |
|
|
|
<td>{{ \Carbon\Carbon::parse($data_peminjaman->exit_at)->format('d/m/Y') }}</td> |
|
|
|
<td>{{ \Carbon\Carbon::parse($data_peminjaman->exit_at)->format('d/m/Y') }}</td> |
|
|
|
<td>{{ $data_peminjaman->exit_pic }}</td> |
|
|
|
<td>{{ $data_peminjaman->exit_pic }}</td> |
|
|
|
<td>{{ $data_peminjaman->warehouse->name }}</td> |
|
|
|
<td>{{ $data_peminjaman->warehouse->name }}</td> |
|
|
@ -59,7 +100,7 @@ |
|
|
|
</button> |
|
|
|
</button> |
|
|
|
</form> |
|
|
|
</form> |
|
|
|
</td> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
</tr> --}} |
|
|
|
@empty |
|
|
|
@empty |
|
|
|
<p>Data Kosong</p> |
|
|
|
<p>Data Kosong</p> |
|
|
|
@endforelse |
|
|
|
@endforelse |
|
|
|