@extends('layouts.admin.master')
@section('title', $pageTitle)
@section('vendor-style')
@endsection
@section('vendor-script')
@endsection
@section('content')
@if(count($errors) > 0)
Error!!
@foreach ($errors->all() as $error)
{{ $error }}
@endforeach
@endif
@if($message = Session::get('success'))
@endif
# |
Customer |
Branch |
Amount |
@php
$sumAmount = 0;
$c = 0;
@endphp
@foreach($transactions as $transaction)
@php
$dueAmount = ($transaction->credit_amount - $transaction->debit_amount);
@endphp
@if($dueAmount > 0)
@php
$c++;
$sumAmount = $sumAmount + $dueAmount;
@endphp
{{ $c }} |
{{ $transaction->customer->name }} |
{{ $transaction->branch->name }} |
{{ abs($dueAmount) }} |
@endif
@endforeach
| | Total | {{ abs($sumAmount) }} |
@endsection