@extends('layouts.app') @section('content')

SOA

Request Transaction History


{{$filters["from"]??""}} - {{$filters["to"]??""}}
@php $first = $soa_query->first(); if ($first) { if ($first->type === 'CREDIT') { $starting_balance = $first->balance - $first->amount; } elseif ($first->type === 'DEBIT') { $starting_balance = $first->balance + $first->amount; } else { $starting_balance = $first->balance ?? 0; } } else { $starting_balance = 0; } @endphp @php $ending_balance = $soa_query->last()->balance ?? 0; @endphp
@endsection @section('page_script') @parent @endsection