@extends('layouts.app')
@php
if($action == 'create'){
$form_action = route($parentRouteName.'.store_multiple');
$createItemName = __('lang.create') ." " .$moduleName;
$breadcrumbCurrentName = __('lang.create');
$submit_button_text = __('lang.save');
$submit_new_button_text = __('lang.save_and_new');
if(!checkRolePermission('Receipts.Edit')){
$redirection_url = route('actual_received.all');
}
}
else if($action == 'edit'){
$form_action = route($parentRouteName.'.update_multiple',$item->id);
$createItemName = __('lang.edit') ." " . $moduleName;
$breadcrumbCurrentName = __('lang.edit');
$submit_button_text = __('lang.update');
$submit_new_button_text = __('lang.update_and_new');
$type = $item->type;
$voucher_attachments = $item->voucher_attachments;
$branch_id = $item->branch_id;
$total_receipt_amount = $item->actual_amount ?? 0;
$is_multi_receipt = $item->is_multiple;
$branch_name = $item->branch_name;
$drawnBankselected = $item->drawn_bank;
$particulars = $item->particulars;
}
$breadcrumbCurrentIcon = "add_box";
$drawn_bank = App\Models\Common::ALL_BANKS();
$save_and_new = route($parentRouteName.'.create_multiple');
@endphp
@section('title')
{{ $moduleName }}->{{ $createItemName }}
@stop
@section('top-bar')
@include('includes.top-bar')
@stop
@section('left-sidebar')
@include('includes.left-sidebar')
@stop
@section('content')
@push('include-css')
@endpush
@stop
@push('include-css')
@endpush
@push('include-js')
@endpush