@extends('layouts.app') @php if($action == 'create'){ $form_action = route($parentRouteName.'.store'); $createItemName = __('lang.create') ." " .$moduleName; $breadcrumbCurrentName = __('lang.create'); $submit_button_text = __('lang.save'); } else if($action == 'edit'){ $form_action = route($parentRouteName.'.update',$data_bank->id); $createItemName = __('lang.edit') ." " . $moduleName; $breadcrumbCurrentName = __('lang.edit'); $submit_button_text = __('lang.update'); } $breadcrumbCurrentIcon = "add_box"; $is_view = request()->get('is_view'); @endphp @section('title') {{ $moduleName }}->{{ $createItemName }} @stop @section('top-bar') @include('includes.top-bar') @stop @section('left-sidebar') @include('includes.left-sidebar') @stop @section('content') {{__('lang.back')}} @include('admin.partials.breadcrumbs') {{ $createItemName }} @csrf @include('layouts.components.select_field', [ 'col' => 6, 'name' => 'data_bank_category_id', 'options' => \App\Models\DataBankCategory::get(), 'default_option'=> __('lang.select_category'), 'label' => __('lang.data_bank_category'), 'selectedValue' => $data_bank->data_bank_category_id, 'labelClass' => 'required', ]) {{__('lang.name')}} @if(!$is_view) {{__('lang.upload')}} add_circle_outline @endif @if($action == "edit") {{ __('lang.sno') }} {{ __('lang.file_name') }} {{ __('lang.action') }} @foreach ($data_bank->voucher_attachments as $attachment) @php $delete_route = route('hrm.data_bank.deleteDocument', ['id'=>$attachment->id]); $disabled_button = ''; $onclick_fn = "delete_document('$delete_route')"; if($is_view){ $disabled_button = 'disabled'; $onclick_fn = ""; } @endphp {{ $loop->iteration }} {{ $attachment->file_name}} @if(checkRolePermission('DataBank.Pdf')) @endif @if(checkRolePermission('DataBank.Delete')) @endif @endforeach @endif {{$submit_button_text}} {{__('lang.back')}} @stop @push('include-css') @endpush @push('include-js') @endpush