@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

Data Kosong

@endforelse
No Kode Peti Nama Customer Tanggal Disposal Alasan Disposal Status Peti Action
{{ $nodisposal++ }} {{ $data_disposal->peti->fix_lot }} {{ $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