List Data Forms Vehicle Running Cost Anda
@if (auth()->user()->can('forms.vehicle.create')) Add New Expense Vehicle Running Cost @endif
| # | Nama | Tanggal | Liter | Harga | Jarak | Tipe Bensin | Nomor Polisi | Bukti 1 | Bukti 2 | Bukti 3 | Account Number | Status | @if (auth()->user()->can('approval.approve') || auth()->user()->can('final_approval.approve'))Approval | @endifAksi | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $loop->iteration }} | {{ $item->user->name }} | {{ \Carbon\Carbon::parse($item->tanggal)->locale('id')->isoFormat('dddd, D MMMM Y HH:mm:ss') }} | {{ $item->liter }} | {{ number_format($item->harga, 0, ',', '.') }} | {{ $item->jarak }} | {{ $item->tipe_bensin }} | {{ $item->nopol }} | @if ($item->bukti1) Download @else - @endif | @if ($item->bukti2) Download @else - @endif | @if ($item->bukti3) Download @else - @endif | {{ $item->account_number }} | @if ($item->status == 'On Progress') {{ $item->status }} @elseif ($item->status == 'Approved' || $item->status == 'Final Approved') {{ $item->status }} @else {{ $item->status }} @endif | @if (auth()->user()->can('approval.approve')){{-- approve / reject button --}} @if ($item->status == 'On Progress') @else @if ($item->approved_at) {{ \Carbon\Carbon::parse($item->approved_at)->locale('id')->isoFormat('D MMMM Y') }} @elseif($item->rejected_at) {{ \Carbon\Carbon::parse($item->rejected_at)->locale('id')->isoFormat('D MMMM Y') }} @else - @endif @endif | @elseif(auth()->user()->can('final_approval.approve')){{-- approve / reject button --}} @if ($item->status == 'Approved' && $item->approved_at && !$item->final_approved_at) @else @if ($item->final_approved_at) @else - @endif @endif | @endif@if (auth()->user()->can('forms.vehicle.edit')) @endif @if (auth()->user()->can('forms.vehicle.delete')) @endif |