@extends('master.authMaster') @section('content') @php use Carbon\Carbon; $currentOrganisationId = old('organisation_id', optional($currentOrganisation)->organisation_id); $financialYear = \App\Models\AccountingYear::current(); if ($financialYear) { [$fyStart, $fyEnd] = array_map('trim', explode(' to ', $financialYear->accounting_year_financial)); $minDate = Carbon::createFromFormat('d-m-Y', $fyStart)->toDateString(); $maxDateCandidate = Carbon::createFromFormat('d-m-Y', $fyEnd); $today = Carbon::today(); $maxDate = $today->greaterThan($maxDateCandidate) ? $maxDateCandidate->toDateString() : $today->toDateString(); } else { $minDate = now()->subYear()->toDateString(); $maxDate = now()->toDateString(); } $oldRows = collect(old('contra_rows', [['bank_id' => null, 'amount' => null, 'date' => null]])); @endphp

Contra Entry List

← Back to Transactions
@include('utils.alert') @endsection