@extends('templates.dashboard') @section('isi')

{{ $title }}

@php $status = array( [ "status" => "PENDING", ], [ "status" => "ACC", ]); @endphp
@foreach ($data as $d) @endforeach
No. Nama Total Keperluan Status Actions
{{ $loop->iteration }} {{ $d->User->name }} Rp {{ number_format($d->nominal) }} {{ $d->keperluan }} @if ($d->status == 'ACC') {{ $d->status }} @else {{ $d->status }} @endif
    @if (auth()->user()->is_admin == 'admin') @if ($d->status !== 'ACC')
  • @endif
  • @method('delete') @csrf
  • @else @if ($d->status !== 'ACC')
  • @method('delete') @csrf
  • @else - @endif @endif
{{ $data->links() }}
@endsection