@extends('layouts.app')
@php
$moduleName = ' Payment Voucher';
$ModelName = 'App\Models\PaymentVoucher';
$ParentRouteName = 'land';
// Donot Delete these variables if not necessary
$formActionRoute = "";
$submitBtnTxt = "";
$voucher_attachments = [];
if($action=='create'){
$formActionRoute = route('land.rebate_payment.store');
$breadcrumbCurrentName = __('lang.create');
$submitBtnTxt = 'Save';
$land_id = $land_rebate_schedule->land_id;
}
else if($action=='edit'){
$formActionRoute = route('land.rebate_payment.store',['id' => $payment_voucher->id]);
$breadcrumbCurrentName = __('lang.edit');
$submitBtnTxt = 'Update';
$land_id = $payment_voucher->land_rebate_items->first()->land_id;
$voucher_attachments = $payment_voucher->voucher_attachments;
$voucher_reference = $payment_voucher->references;
}
$createItemName = $breadcrumbCurrentName . $moduleName;
$breadcrumbCurrentIcon = 'add_box';
$breadcrumbMainName = $moduleName;
$breadcrumbMainIcon = 'fas fa-receipt';
@endphp
@section('title')
{{ $moduleName }}->{{ $createItemName }}
@stop
@section('top-bar')
@include('includes.top-bar')
@stop
@section('left-sidebar')
@include('includes.left-sidebar')
@stop
@section('content')
@stop
@push('include-css')
@endpush
@push('include-js')
@endpush