@extends('layouts.app')
@php
$form_action = route($parentRouteName.'.store',['lease_id' => $lease->id]);
if($action == 'create'){
$createItemName = __('lang.create') ." " .$moduleName;
$breadcrumbCurrentName = __('lang.create');
$submit_button_text = __('lang.save');
}
else if($action == 'edit'){
$createItemName = __('lang.edit') ." " . $moduleName;
$breadcrumbCurrentName = __('lang.edit');
$submit_button_text = __('lang.update');
}
$breadcrumbCurrentIcon = "add_box";
$currency_symbol = config('settings.currency_symbol');
$lease_amount_official = $lease->amount;
$lease_amount_unofficial = $lease->amount_unofficial;
$additional_charges_official = $lease->additional_charges;
$additional_charges_unofficial = $lease->additional_charges_unofficial;
$tax_amount_official = $lease->tax_amount;
$tax_amount_unofficial = $lease->tax_amount_unofficial;
$net_amount_official = $lease->net_amount;
$net_amount_unofficial = $lease->net_amount_unofficial;
$lease_amount = $lease_amount_official;
$additional_charges = $additional_charges_official;
$tax_amount = $tax_amount_official;
$total_lease_amount = $net_amount_official;
if($is_unofficial){
$lease_amount = $lease_amount_official + $lease_amount_unofficial;
$additional_charges = $additional_charges_official + $additional_charges_unofficial;
$tax_amount = $tax_amount_official + $tax_amount_unofficial;
$total_lease_amount = $net_amount_official + $net_amount_unofficial;
}
$placeholderPayableAmount = ($is_unofficial == 1 ? 'Official Payable Amount' : 'Payable Amount');
@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