@extends('layouts.main') @push('styles') @endpush @section('content')
| # | Transaction Date : | Record Date : | Staff In-Charge : | Type | Account | Memo | Debit | Credit | Balance | Action | ||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $counter }}. | {{ streamline_date($record->trans_date) }} | {{ streamline_date($record->created_at) }} | {{ get_full_name($record->created_by, 'id', 'first_name', 'last_name', 'users') }} | {{ $record->trans_type }} | @php $banks = explode(',',$record->bank); $other_accounts = explode(',',$record->other_accounts); @endphp
@for($x = 0; $x
< count($other_accounts); $x++) {{ get_name($other_accounts[$x], 'id', 'name', 'chart_of_accounts') }} @endfor |
{{ $record->memo }} | @if($record->debit != 0){{ ugandan_shillings($record->debit) }} | @else{{ ugandan_shillings(0) }} | @endif @if($record->credit != 0){{ ugandan_shillings($record->credit) }} | @else{{ ugandan_shillings(0) }} | @endif{{ ugandan_shillings($record->account_balance) }} | @if($loop->last) @php $sum_balance = $record->account_balance; @endphp @endif@if($record->debit != 0) @elseif($record->credit != 0) @elseif($record->debit == 0 && $record->credit == 0) @endif |