@extends('templates.app') @section('container')
@php $status = array( [ "status" => "PENDING", ], [ "status" => "ACC", ]); @endphp
+ Tambah
@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