@extends('backend.layouts.admin') @section('main-content')
Ledger: Assets
Assets {{$type=='debit'?'Buying':': '.ucfirst($investor)}}
@if($type=='debit') @php($balance = 0) @foreach($asset_debits as $row) @endforeach @endif @if($type=='credit') @php($balance = 0) @foreach($investor_txs as $row) @endforeach @endif @if($type=='debit') @endif @if($type=='credit') @endif
Date Voucher # Description Debit Credit Balance
Opening Balance 0 0 0
{{$row->created_at->format('d-m-Y')}} CR-{{$row->id??''}} {{ucfirst($row->vehicle->vmodel->name??'')}} - {{$row->vehicle->registration_no??''}} {{number_format($row->amount)}} 0 {{number_format($balance+=($row->amount))}}
{{$row->created_at->format('d-m-Y')}} CR-{{$row->id??''}} {{ucfirst($row->vehicle->vmodel->name??'')}} - {{$row->vehicle->registration_no??''}} 0 {{number_format($row->amount)}} -{{number_format($row->amount)}}
{{number_format($asset_debits->sum('amount'))}} {{number_format($balance)}}
{{number_format($investor_txs->sum('amount'))}} -{{number_format($investor_txs->sum('amount'))}}
@endsection @push('scripts') @endpush