@extends('layouts.main') @section('content') @include('layouts.components.alert-prompt') @if (auth()->user()->role_id == 1)
Data Disposal
{{-- --}} @php $nodisposal = 1; @endphp @forelse ($disposal as $data_disposal) {{-- --}} @empty @endforelse
No Kode Peti Nama Customer Tanggal Disposal Alasan DisposalStatus PetiAction
{{ $nodisposal++ }} {{ optional($data_disposal->peti)->fix_lot }} {{ optional($data_disposal->customer)->name }} {{ \Carbon\Carbon::parse($data_disposal->date_disposal)->format('d-m-Y') }} {{ $data_disposal->description }}{{ $data_disposal->status_disposal }}
@csrf @method('DELETE')
@elseif (auth()->user()->role_id == 2) @include('pages.user.dashboard.disposal.index') @endif @endsection