@extends('layouts.frontend.app') @section('content')
{{ __('Staff Fund transactions') }}
@foreach ($transactions as $transaction) @endforeach
{{ __('DATE') }} {{ __('Staff Name') }} {{ __('PURPOSE') }} {{ __('DEPOSIT') }} {{ __('WITHDRAW') }} {{ __('ACCOUNT NO') }} {{ __('MEMBER NAME') }} {{ __('TYPE') }} {{ __('PROCESS BY') }} {{ __('ACTION') }}
{{ $loop->iteration }} {{ $transaction->date }} {{ $transaction->staff->name }} {{ $transaction->type == 'deposit' ? $transaction->purpose->title : '' }} {{ $transaction->type == 'deposit' ? $transaction->amount : '0.00' }} {{ $transaction->type == 'withdraw' ? $transaction->amount : '0.00' }} {{ $transaction->member_id ? $transaction->member->account : '' }} {{ $transaction->member_id ? $transaction->member->m_name : '' }} {{ $transaction->type }} {{ $transaction->processed_by ? $transaction->processor->name : '' }} @role('admin|manager')
@csrf @method('DELETE')
@endrole
{{-- add modal start --}} {{-- from d list --}} {{-- add modal end --}} @endsection