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

94 lines
3.6 KiB
PHP

@extends('layouts.app')
@section('content')
<div class='card'>
<div class='card-header d-flex justify-content-between align-items-center'>
<h2 class="">{{ label('Add Onboardings') }}</h2>
<?php createButton('btn-primary btn-cancel', '', 'Cancel', route('onboardings.index')); ?>
</div>
<div class='card-body'>
<form action="{{ $editable ? route('onboardings.update', [$data->onboarding_id]) : route('onboardings.store') }}"
id="updateCustomForm" method="POST">
@csrf <input type=hidden name='onboarding_id' value='{{ $editable ? $data->onboarding_id : '' }}' />
<div class="row">
<div class="col-lg-6 pb-2">{{ createDate('doj', 'Doj', '', $editable ? $data->doj : '') }}
</div>
<div class="col-lg-6">
{{ createCustomSelect(
'tbl_designations',
'title',
'designation_id',
$editable ? $data->designations_id : '',
'Designations
Id',
'designations_id',
'form-control select2',
'status<>-1',
) }}
</div>
<div class="col-lg-6">
{{ createText(
'position_status',
'position_status',
"Position
Status",
'',
$editable ? $data->position_status : '',
) }}
</div>
<div class="col-lg-6">
{{ createCustomSelect(
'tbl_departments',
'title',
'department_id',
$editable ? $data->departments_id : '',
'Departments Id',
'departments_id',
'form-control select2',
'status<>-1',
) }}
</div>
<div class="col-lg-6">
{{ createCustomSelect(
'tbl_shifts',
'title',
'shift_id',
$editable ? $data->shifts_id : '',
'Shifts Id',
'shifts_id',
'form-control
select2',
'status<>-1',
) }}
<!-- </div><div class="col-lg-6">{{ createText('agreement', 'agreement', 'Agreement', '', $editable ? $data->agreement : '') }} -->
</div>
<div class="col-lg-6 pb-2">
{{ createImageInput('agreement', 'Agreement', '', $editable ? $data->agreement : '') }}
</div>
<div class="col-lg-6 pb-2">{{ createImageInput('nda', 'Nda', '', $editable ? $data->nda : '') }}
</div>
<div class="col-lg-6">
{{ createText('terms', 'terms', 'Terms', '', $editable ? $data->terms : '') }}
</div>
<div class="col-lg-6">
{{ createText('workoptions', 'workoptions', 'Workoptions', '', $editable ? $data->workoptions : '') }}
</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('onboardings.index')); ?>
</div>
</form>
</div>
</div>
@endsection