@extends('layouts.main_without_top_button') @section('title') {{$vendor->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 | |||
---|---|---|---|---|---|---|---|---|
OPEN BALANCE BEFORE {{$open_balance['date']}} | {{number_format($open_balance['amount'])}} | |||||||
{{\Carbon\Carbon::parse($transaction['date'])->toFormattedDateString()}} | {{$transaction['description']}} | {{$transaction['document_number']}} | @if($transaction['type'] =="CREDITED") {{--*/ $debit = 0 /*--}} {{--*/ $credit = $transaction['amount'] /*--}}{{number_format($transaction['amount'])}} | @elseif($transaction['type'] =="DEBITED") {{--*/ $debit = $transaction['amount'] /*--}} {{--*/ $credit = 0 /*--}}{{number_format($transaction['amount'])}} | @endif {{--*/ $balance_t = $balance_t + $debit - $credit /*--}} | @if($balance_t<0) ( {{number_format((-$balance_t))}} ) @else {{number_format($balance_t)}} @endif |