@extends('layouts.main') @section('content') @include('layouts.components.alert-prompt') @if (auth()->user()->role_id == 1)
Data Disposal
@forelse ($disposals as $data_disposal) @empty @endforelse
No Kode Peti Nama Customer Tanggal Disposal Alasan Disposal Action
{{ $i++ }} {{ optional($data_disposal->peti)->fix_lot }} {{ optional($data_disposal->customer)->name }} {{ \Carbon\Carbon::parse($data_disposal->date_disposal)->format('d-m-Y') }} {{ optional($data_disposal)->description }}
@csrf @method('DELETE')
Data Kosong
@if (!$disposals->isEmpty())

Showing {{ $disposals->firstItem() }} to {{ $disposals->lastItem() }} of {{ $disposals->total() }} entries

@endif
@if ($disposals->total() > $disposals->perPage()) @endif
@elseif (auth()->user()->role_id == 2) @include('pages.user.dashboard.disposal.index') @endif @endsection