@extends('master.authMaster') @section('content') {{-- Form --}}

Liability

@csrf
{{--
--}}
@php use Carbon\Carbon; $financialYear = \App\Models\AccountingYear::current(); [$startDate, $endDate] = explode( ' to ', $financialYear->accounting_year_financial, ); $startDate = Carbon::createFromFormat('d-m-Y', trim($startDate)); $endDate = Carbon::createFromFormat('d-m-Y', trim($endDate)); $today = Carbon::today(); if ($today->between($startDate, $endDate)) { $maxDate = $today->toDateString(); } else { $maxDate = $endDate->toDateString(); } $minDate = $startDate->toDateString(); @endphp
{{--
--}}
{{--
--}} @endsection