স্টেটমেন্ট

@php $total_cost = 0; $total_earning = 0; @endphp @foreach($data as $item) @endforeach
তারিখ চালান/চেক নম্বর বিস্তারিত ব্যয় আয় ব্যলেন্স
ওপেনিং ব্যলেন্স {{ number_format($openingBalance, 2) }}
{{ date('d M, Y', strtotime($item['date'])) }} @if($item['type'] == 'earning') {{ $item['calan_no'] }} @elseif($item['type'] == 'cost') {{ $item['check_no'] }} @endif @if($item['type'] == 'earning') {{ $item['income_sector_id'] }} @elseif($item['type'] == 'cost') {{ $item['expenditure_sector_id'] }} @endif @if($item['type'] == 'cost') {{ number_format($item['cost_amount'], 2) }} @php($total_cost += $item['cost_amount']) @endif @if($item['type'] == 'earning') {{ number_format($item['earning_amount'], 2) }} @php($total_earning += $item['earning_amount']) @endif {{ number_format($total_earning-$total_cost, 2) }}
সর্বমোট টাকা {{ number_format($total_cost, 2) }} {{ number_format($total_earning, 2) }} {{ number_format(($openingBalance+$total_earning)-$total_cost, 2) }}