@extends('layouts.app') @section('title', __('home.home')) @section('content')
@foreach($hostel as $row) @php $amountDue = $row->total_invoice - $row->invoice_received - $row->total_ledger_discount; @endphp

{{$row->name }}

Roll No - {{$row->id }}

Total Invoice - {{number_format($row->total_invoice, 2) }}

Amount Paid - {{number_format($row->invoice_received, 2) }}

@if($amountDue > 0)

Amount Due - {{number_format($amountDue, 2)}}

@else

Amount Due - {{number_format($amountDue, 2)}}

@endif

Op.Balance - {{number_format($row->opening_balance, 2) }}

@if($amountDue > 0)
@else
@endif
@endforeach
@stop