@extends('layouts.print') @section('content')
Ledger of {{$ledger->title}}
@php $total_cr=0; $total_dr=0; @endphp @foreach ($ledger->info as $info) @php $total_cr+=$info->credit; $total_dr+=$info->debit; @endphp @endforeach
Date/Time Narration/Particulars Debit Credit
{{$info->created_at->format('d-M-Y')}}
{{$info->created_at->format('h:i:s A')}}
{{$info->narration}}
{{$info->particulars}}
@if ($info->debit==null) @else {{number_format($info->debit,2)}} @endif @if ($info->credit==null) @else {{number_format($info->credit,2)}} @endif
Total # Dr. {{number_format($total_dr,2)}} Cr. {{number_format($total_cr,2)}}
@endsection