New-OMIS/resources/views/crud/generated/employees/edit.blade.php

317 lines
10 KiB
PHP
Raw Normal View History

2024-04-07 07:28:58 +00:00
@extends('layouts.app')
2024-04-05 05:22:15 +00:00
@section('content')
2024-04-07 07:28:58 +00:00
<div class='card'>
<div class='card-header d-flex justify-content-between align-items-center'>
<h2 class="">{{ label('Add Employees') }}</h2>
<?php createButton('btn-primary btn-cancel', '', 'Cancel', route('employees.index')); ?>
2024-04-05 05:22:15 +00:00
2024-04-07 07:28:58 +00:00
</div>
<div class='card-body'>
<form action="{{ $editable ? route('employees.update', [$data->employee_id]) : route('employees.store') }}"
id="updateCustomForm" method="POST">
@csrf <input type=hidden name='employee_id' value='{{ $editable ? $data->employee_id : '' }}' />
<div class="row">
<div class="col-lg-6">
{{ createText(
'first_name',
'first_name',
"First
Name",
'',
$editable ? $data->first_name : '',
) }}
</div>
<div class="col-lg-6">
{{ createText(
'middle_name',
'middle_name',
"Middle
Name",
'',
$editable ? $data->middle_name : '',
) }}
</div>
<div class="col-lg-6">
{{ createText(
'last_name',
'last_name',
"Last
Name",
'',
$editable ? $data->last_name : '',
) }}
</div>
<div class="col-lg-6">
{{ createText('email', 'email', 'Email', '', $editable ? $data->email : '') }}
</div>
<div class="col-lg-6">
{{ createCustomSelect(
'tbl_genders',
'title',
'gender_id',
$editable ? $data->genders_id : '',
'Genders Id',
'genders_id',
'form-control
select2',
'status<>-1',
) }}
</div>
<div class="col-lg-6">
{{ createText(
'nepali_dob',
'nepali_dob',
"Nepali
Dob",
'',
$editable ? $data->nepali_dob : '',
) }}
</div>
<div class="col-lg-6 pb-2">{{ createDate('dob', 'Dob', '', $editable ? $data->dob : '') }}
</div>
<div class="col-lg-6">
{{ createCustomSelect(
'tbl_nationalities',
'title',
'nationality_id',
$editable ? $data->nationalities_id : '',
'Nationalities
Id',
'nationalities_id',
'form-control select2',
'status<>-1',
) }}
</div>
<div class="col-lg-6">
{{ createText(
'about_me',
'about_me',
"About
Me",
'',
$editable ? $data->about_me : '',
) }}
</div>
<div class="col-lg-12 pb-2">
{{ createImageInput('signature', 'Signature', '', $editable ? $data->signature : '') }}
</div>
<div class="col-lg-6">
{{ createText(
'father_name',
'father_name',
"Father
Name",
'',
$editable ? $data->father_name : '',
) }}
</div>
<div class="col-lg-6">
{{ createText(
'mother_name',
'mother_name',
"Mother
Name",
'',
$editable ? $data->mother_name : '',
) }}
</div>
<div class="col-lg-6">
{{ createText(
'grand_father_name',
'grand_father_name',
"Grand Father
Name",
'',
$editable ? $data->grand_father_name : '',
) }}
</div>
<div class="col-lg-6">
{{ createText(
'grand_mother_name',
'grand_mother_name',
"Grand Mother
Name",
'',
$editable ? $data->grand_mother_name : '',
) }}
</div>
<div class="col-lg-6">
{{ createText('spouse', 'spouse', 'Spouse', '', $editable ? $data->spouse : '') }}
</div>
<div class="col-lg-6">
{{ createText('contact', 'contact', 'Contact', '', $editable ? $data->contact : '') }}
</div>
<div class="col-lg-6">
{{ createText(
'alt_contact',
'alt_contact',
"Alt
Contact",
'',
$editable ? $data->alt_contact : '',
) }}
2024-04-05 05:22:15 +00:00
2024-04-07 07:28:58 +00:00
</div>
<div class="col-lg-6 pb-2">
{{ createImageInput(
'profile_picture',
"Profile
Picture",
'',
$editable ? $data->profile_picture : '',
) }}
</div>
<div class="col-lg-6">
{{ createCustomSelect(
'tbl_users',
'name',
'id',
$editable ? $data->users_id : '',
'Users Id',
'users_id',
'form-control
select2',
'status<>-1',
) }}
</div>
<div class="col-lg-6">
{{ createText(
'is_login_required',
'is_login_required',
"Is Login
Required",
'',
$editable ? $data->is_login_required : '',
) }}
</div>
<div class="col-lg-6">
{{ createText('skills', 'skills', 'Skills', '', $editable ? $data->skills : '') }}
</div>
<div class="col-lg-12 pb-2">
{{ createTextarea(
'experience',
"experience
ckeditor-classic",
'Experience',
$editable ? $data->experience : '',
) }}
</div>
<div class="col-lg-6">
{{ createText(
'permanent_address',
'permanent_address',
"Permanent
Address",
'',
$editable ? $data->permanent_address : '',
) }}
</div>
2024-04-05 05:22:15 +00:00
2024-04-07 07:28:58 +00:00
<div class="col-lg-6">
{{ createCustomSelect(
'tbl_cities',
'title',
'city_id',
$editable ? $data->permanent_city : '',
'Permanent
City',
'permanent_city',
'form-control
select2',
'status<>-1',
) }}
</div>
2024-04-05 05:22:15 +00:00
2024-04-07 07:28:58 +00:00
<div class="col-lg-6">
{{ createText(
'temporary_address',
'temporary_address',
"Temporary
Address",
'',
$editable ? $data->temporary_address : '',
) }}
</div>
2024-04-05 05:22:15 +00:00
2024-04-07 07:28:58 +00:00
<div class="col-lg-6">
{{ createCustomSelect(
'tbl_cities',
'title',
'city_id',
$editable ? $data->temporary_city : '',
'Temporary
City',
'temporary_city',
'form-control
select2',
'status<>-1',
) }}
</div>
<div class="col-lg-6">
{{ createText(
'old_system_address',
'old_system_address',
"Old System
Address",
'',
$editable ? $data->old_system_address : '',
) }}
</div>
<div class="col-lg-6">
{{ createText('education', 'education', 'Education', '', $editable ? $data->education : '') }}
</div>
<div class="col-lg-6">
{{ createCustomSelect(
'tbl_castes',
'title',
'caste_id',
$editable ? $data->castes_id : '',
'Castes Id',
'castes_id',
'form-control
select2',
'status<>-1',
) }}
</div>
<div class="col-lg-6">
{{ createCustomSelect(
'tbl_ethnicities',
'title',
'ethnicity_id',
$editable ? $data->ethnicities_id : '',
'Ethnicities Id',
'ethnicities_id',
'form-control select2',
'status<>-1',
) }}
</div>
<div class="col-lg-6">
{{ createCustomSelect(
'tbl_dags',
'title',
'dag_id',
$editable ? $data->dags_id : '',
'Dags Id',
'dags_id',
'form-control select2',
'status
<>-1',
) }}
</div>
<div class="col-lg-6">
{{ createText('title', 'title', 'Title', '', $editable ? $data->title : '') }}
</div>
<div class="col-lg-12 pb-2">
{{ createPlainTextArea('remarks', '', 'Remarks', $editable ? $data->remarks : '') }}
</div>
<div class="col-md-12">
<?php createButton('btn-primary btn-update', '', 'Submit'); ?>
<?php createButton('btn-primary btn-cancel', '', 'Cancel', route('employees.index')); ?>
</div>
</form>
</div>
</div>
@endsection