balance > 0) $other = $other_fee_total->balance; if($tuition_fee_total->balance > 0) $tuition = $tuition_fee_total->balance; if($special_fee_total->balance > 0) $special = $special_fee_total->balance; if($other_payment->balance > 0) $otherpayments = $other_payment->balance; $total_max = $other+$special+$otherpayments+$tuition; $accountings = \App\ChartOfAccount::orderBy('accounting_code')->get(); ?> @extends('layouts.accountingapp') @section('content')

Debit Memo

Date : {{date("M d, Y")}}
Student ID : {{$user->idno}}
Student Name : {{$user->lastname}}, {{$user->firstname}}

{{csrf_field()}}
@if(count($previous_total)>0) @if($previous_total->balance > 0)
Previous Balance :
{{number_format($previous_total->balance,2)}}
@else @endif @else @endif
Main Account :
FeesBalanceAmount
Tuition Fee{{number_format($tuition_fee_total->balance,2)}}
Other Fees{{number_format($other_fee_total->balance,2)}}
Other Payments{{number_format($special_fee_total->balance,2)}}
Other Payments{{number_format($other_payment->balance,2)}}
@if(count($other_misc)>0)
Other Payment :
@foreach($other_misc as $om) @endforeach
ParticularAmount
{{$om->receipt_details}}
@endif
Amount To Be Debit :
Explanation :
@stop @section('script') @stop