@if (Session::has('success'))
Success ! {{ session('success') }}
@endif
@if($errors->any())
@foreach($errors->all() as $error)
Error ! {{ $error }}
@endforeach
@endif
Millennium Computers And Networking
Genral Ledger {{ $glcodeName }}
From {{ $start_date}} To {{ $end_date}}
@php
$count = 1;
$opencashdr = 0;
$opencashcr = 0;
$openbankdr= 0;
$openbankcr= 0;
@endphp
| Entry No |
Type |
Date |
Particulars |
Cost Center/Department |
Period Transaction |
Balance |
| Debit |
Credit |
Debit |
Credit |
@php
$Total_dr=0;
$Total_cr=0;
$BlDrAmount=0;
$BlCrAmount=0;
$MasterBalance=0;
@endphp
@foreach ($trnjournals as $trnjournal)
@php
$BlDrAmount=$BlDrAmount+$trnjournal->DrCashAmount;
$BlCrAmount=$BlCrAmount+$trnjournal->CrCashAmount;
$MasterBalance=$BlDrAmount-$BlCrAmount;
if(($BlDrAmount-$BlCrAmount)>0)
{
$BlDrAmount=$BlDrAmount-$BlCrAmount;
$BlCrAmount=0;
}
else if(($BlDrAmount-$BlCrAmount)<0)
{
$BlCrAmount=$BlCrAmount-$BlDrAmount;
$BlDrAmount=0;
}
else
{
$BlCrAmount=0;
$BlDrAmount=0;
}
@endphp
| Opening Balance |
{{ $BlDrAmount }} |
{{ $BlCrAmount }} |
@endforeach
@foreach ($masjournals as $masjournal)
@php
$DrAmount = $masjournal->DrAmount;
$CrAmount = $masjournal->CrAmount;
$ttype = $masjournal->ttype;
$CrAmount = $masjournal->CrAmount;
$Total_dr=$Total_dr+$DrAmount;
$Total_cr=$Total_cr+$CrAmount;
if(strcmp($ttype,"Dr")==0)
{
$MasterBalance=$MasterBalance+$masjournal->amount;
}
else
{
$MasterBalance=$MasterBalance-$masjournal->amount;
}
//////////////////////////////////////////
if($MasterBalance>0)
{
$BlDrAmount=$MasterBalance;
$BlCrAmount=0;
}
else if($MasterBalance<0)
{
$BlCrAmount=$MasterBalance*-1;
$BlDrAmount=0;
}
else
{
$BlDrAmount=0;
$BlCrAmount=0;
}
@endphp
| {{ $masjournal->journalno }} |
journaltype }} |
{{ $masjournal->journaldate }} |
{{ $masjournal->remarks }} |
{{ $masjournal->customer_name }} |
{{ $DrAmount }} |
{{ $CrAmount }} |
{{ $BlDrAmount }} |
{{ $BlCrAmount }} |
@endforeach
| Total |
|
|
|
@endsection