3
3
<div class="box-header">
<h4 class="box-title">Penerimaan Barang</h4>
</div>
<div class="box-body">
<a href="{{route('logistik.umum.penerimaan.create')}}" class="btn btn-
dark"><i class="fa fa-plus"></i> Tambah Penerimaan</a>
<div class="table-responsive mt-3">
<table class="table table-striped table-hover">
<thead class="bg-dark text-light">
<tr>
<th>No</th>
<th>No Invoice</th>
<th>No Faktur</th>
<th>Vendor</th>
<th>Tanggal Penerimaan</th>
<th>Pegawai</th>
<th>Jumlah barang</th>
<th></th>
</tr>
</thead>
<tbody>
@forelse($pemesanan as $index => $item)
<tr>
<td>{{$index+1}}.</td>
<td>#{{str_pad($item->id, 7, 0, 0)}}</td>
<td>{{$item->no_faktur}}</td>
<td>{{$item->vendor->nama ?? ''}}</td>
<td>{{$item->tanggal_penerimaan}}</td>
<td>{{$item->user->name}}</td>
<td>{{$item->detail()->count()}}</td>
<td>
<a href="{{route('logistik.umum.penerimaan.show',
['id' => $item->id])}}" class="btn btn-primary btn-sm">Detail</a>
</td>
</tr>
@empty
<tr>
<td colspan="13" class="text-center">
Tidak ada data
</td>
</tr>
@endforelse
</tbody>
</table>
</div>
{{$pemesanan->links()}}
</div>
</div>