@extends('master.app') @section('title', 'Customer Agent Transactions') @section('body')
Customer Agent Transactions
Add
@include('general.valert')
Reset
Total IN
{{ number_format($totals->total_in ?? 0, 2) }}
Total OUT
{{ number_format($totals->total_out ?? 0, 2) }}
Total IN (Base)
{{ number_format($totals->total_in_base ?? 0, 2) }}
Total OUT (Base)
{{ number_format($totals->total_out_base ?? 0, 2) }}
@forelse($data as $row) @empty @endforelse
# Date Customer Employee Dir Type Amount Currency Rate Ref Method Action
{{ $row->id }} {{ $row->date }} {{ $row->customer->name ?? ('Customer #'.$row->customer_id) }} {{ $row->employee->name ?? $row->employee->full_name ?? ('Employee #'.$row->employee_id) }} @if($row->direction=='in') IN @else OUT @endif {{ $row->type }} {{ number_format($row->amount ?? 0, 2) }} {{ $row->currency->title_en ?? $row->currency->title_ps ?? 'N/A' }} {{ number_format($row->ex_rate ?? 1, 4) }} {{ $row->reference }} {{ $row->payment_method }}
@csrf @method('delete')
No data
{{ $data->links() }}
@endsection