@extends('layouts.main_without_top_button') @section('title') {{$client->name}} Profile @stop @section('navigation')
@stop @section('contentinner')
STATEMENTS OF ACCOUNTS FROM {{\Carbon\Carbon::parse($date[0])->toFormattedDateString()}} TO {{\Carbon\Carbon::parse($date[1])->toFormattedDateString()}} |
Date | Description | Ref. No | Dr | Cr | Balance | |||
---|---|---|---|---|---|---|---|---|
{{\Carbon\Carbon::parse($open_balance['date'])->toFormattedDateString()}} | OPEN BALANCE | @if($open_balance['amount'] >=0){{number_format($open_balance['amount'],2)}} | {{number_format($open_balance['amount'],2)}} | @else{{number_format($open_balance['amount']*-1,2)}} | ({{number_format($open_balance['amount']*-1,2)}}) | @endif|||
{{\Carbon\Carbon::parse($transaction['date'])->toFormattedDateString()}} | {{$transaction['description']}} | {{$transaction['document']}} {{$transaction['document_number']}} | @if($transaction['type'] =="DEBITED") {{--*/ $debit = 0 /*--}} {{--*/ $credit = $transaction['amount'] /*--}}{{number_format($transaction['amount'],2)}} | @elseif($transaction['type'] =="CREDITED") {{--*/ $debit = $transaction['amount'] /*--}} {{--*/ $credit = 0 /*--}} | {{number_format($transaction['amount'],2)}} | @endif {{--*/ $balance_t = $balance_t - $debit + $credit /*--}}@if($balance_t<0) ( {{number_format(($balance_t*-1),2)}} ) @else {{number_format($balance_t,2)}} @endif |