@extends('layouts.nav') @section('title') GL Report @endsection @section('content')

Accounting Report

General Ledger Report
@if (session('success'))
{{ session('success') }}
@endif @if ($errors->any())
@foreach ($errors->all() as $error)
{{ $error }}
@endforeach
@endif
@csrf

{{$name}} GL Report

Date

@php use Carbon\Carbon; $todayLongDate = Carbon::now()->format(' F j, Y'); @endphp

{{$todayLongDate}}

Account

{{$code}}

Currency: {{$currnames}}

From: {{$from}} To: {{$to}}

@php $b =0; @endphp @foreach ($trans as $tran) @endforeach
Date Description Total
{{$to}} {{$code.' '.$name}} @php $b =$tran->Total; @endphp @if($tran->Total < 0) ({{ number_format(abs($tran->Total), 2) }}) @else {{ number_format($tran->Total, 2) }} @endif
Balance:
@if($b < 0) ({{ number_format(abs($b), 2) }}) @else {{ number_format($b, 2) }} @endif
@endsection