CasperSecurity
<div>
<div class="row">
<?php
if (! isset($_instance)) {
$html = \Livewire\Livewire::mount('masters.header-livewire')->html();
} elseif ($_instance->childHasBeenRendered('l1397942435-0')) {
$componentId = $_instance->getRenderedChildComponentId('l1397942435-0');
$componentTag = $_instance->getRenderedChildComponentTagName('l1397942435-0');
$html = \Livewire\Livewire::dummyMount($componentId, $componentTag);
$_instance->preserveRenderedChild('l1397942435-0');
} else {
$response = \Livewire\Livewire::mount('masters.header-livewire');
$html = $response->html();
$_instance->logRenderedChild('l1397942435-0', $response->id(), \Livewire\Livewire::getRootElementTagName($html));
}
echo $html;
?>
<div class="row mt-1 border-top-1 py-5">
</div>
<div class="card card-flush p-0" style="box-shadow: 0px 5px 10px #4f55da;">
<!--begin::Card header-->
<div class="card-header mt-2">
<!--begin::Card title-->
<div class="card-title row">
<div class="col-md-12 mb-3">
<h4 class="fs-3 font-bold">Employee Types Informations</h4>
</div>
<div class="col-md-12">
<div class="d-flex align-items-center position-relative my-1 me-5">
<!--begin::Svg Icon | path: icons/duotune/general/gen021.svg-->
<span class="svg-icon svg-icon-1 position-absolute ms-6">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"
viewBox="0 0 24 24" fill="none">
<rect opacity="0.5" x="17.0365" y="15.1223" width="8.15546"
height="2" rx="1" transform="rotate(45 17.0365 15.1223)"
fill="black"/>
<path
d="M11 19C6.55556 19 3 15.4444 3 11C3 6.55556 6.55556 3 11 3C15.4444 3 19 6.55556 19 11C19 15.4444 15.4444 19 11 19ZM11 5C7.53333 5 5 7.53333 5 11C5 14.4667 7.53333 17 11 17C14.4667 17 17 14.4667 17 11C17 7.53333 14.4667 5 11 5Z"
fill="black"/>
</svg>
</span>
<!--end::Svg Icon-->
<input type="text" data-kt-table-filter="search"
class="form-control w-250px ps-15" wire:model="search"
placeholder="Search" style=" border: #c3c3c3 solid thin; border-radius: 5px;"/>
</div>
</div>
</div>
<!--end::Card title-->
<!--begin::Card toolbar-->
<div class="card-toolbar">
<!--begin::Button-->
<button type="button" style="width: 80px;"
class="btn btn-info btn-sm d-flex justify-content-center" data-bs-toggle="modal"
data-bs-target="#kt_modal_add_upadate" wire:click="createclick">
<!--begin::Svg Icon | path: icons/duotune/general/gen035.svg-->
<span class="svg-icon svg-icon-6 ">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"
viewBox="0 0 24 24" fill="none">
<rect opacity="0.3" x="2" y="2" width="20" height="20" rx="5" fill="black"/>
<rect x="10.8891" y="17.8033" width="12" height="2" rx="1"
transform="rotate(-90 10.8891 17.8033)" fill="black"/>
<rect x="6.01041" y="10.9247" width="12" height="2" rx="1" fill="black"/>
</svg>
</span>
<span class="">New</span>
</button>
</div>
</div>
<div class="card-body pt-0">
<table class="table align-middle table-row-dashed table-row-gray-900 text-start fs-8 gy-1 mb-0" id="kt_table">
<thead>
<tr class="text-start text-gray-400 fw-bolder fs-9 text-uppercase gs-0">
<th class="text-center min-w-50px text-black p-2">Actions</th>
<th class="text-center min-w-50px text-black p-2">Status</th>
<th class="text-center min-w-50px text-black p-2">Employee Type</th>
<th class="text-center min-w-50px text-black p-2">Short Name</th>
</tr>
</thead>
<tbody>
<?php if(sizeof($datatables)>0): ?>
<?php $__currentLoopData = $datatables; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $tabledata): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
<td class="text-center">
<!--begin::Update-->
<button class="btn btn-icon btn-active-light-info w-15px h-15px me-3"
data-bs-toggle="modal" data-bs-target="#kt_modal_add_upadate"
wire:click="updateclick(<?php echo e($tabledata->id); ?>)">
<!--begin::Svg Icon | path: icons/duotune/general/gen019.svg-->
<span class="svg-icon svg-icon-6 svg-icon-info">
<svg xmlns="http://www.w3.org/2000/svg" width="24"
height="24" viewBox="0 0 24 24" fill="none">
<path opacity="0.3" fill-rule="evenodd" clip-rule="evenodd"
d="M2 4.63158C2 3.1782 3.1782 2 4.63158 2H13.47C14.0155 2 14.278 2.66919 13.8778 3.04006L12.4556 4.35821C11.9009 4.87228 11.1726 5.15789 10.4163 5.15789H7.1579C6.05333 5.15789 5.15789 6.05333 5.15789 7.1579V16.8421C5.15789 17.9467 6.05333 18.8421 7.1579 18.8421H16.8421C17.9467 18.8421 18.8421 17.9467 18.8421 16.8421V13.7518C18.8421 12.927 19.1817 12.1387 19.7809 11.572L20.9878 10.4308C21.3703 10.0691 22 10.3403 22 10.8668V19.3684C22 20.8218 20.8218 22 19.3684 22H4.63158C3.1782 22 2 20.8218 2 19.3684V4.63158Z"
fill="black"/>
<path
d="M10.9256 11.1882C10.5351 10.7977 10.5351 10.1645 10.9256 9.77397L18.0669 2.6327C18.8479 1.85165 20.1143 1.85165 20.8953 2.6327L21.3665 3.10391C22.1476 3.88496 22.1476 5.15129 21.3665 5.93234L14.2252 13.0736C13.8347 13.4641 13.2016 13.4641 12.811 13.0736L10.9256 11.1882Z"
fill="black"/>
<path
d="M8.82343 12.0064L8.08852 14.3348C7.8655 15.0414 8.46151 15.7366 9.19388 15.6242L11.8974 15.2092C12.4642 15.1222 12.6916 14.4278 12.2861 14.0223L9.98595 11.7221C9.61452 11.3507 8.98154 11.5055 8.82343 12.0064Z"
fill="black"/>
</svg>
</span>
<!--end::Svg Icon-->
</button>
<!--end::Update-->
<!--begin::Delete-->
<button class="btn btn-icon btn-active-light-danger w-15px h-15px"
data-kt-table-filter="delete_row" data-bs-toggle="modal"
data-bs-target="#deleteConfirmation"
wire:click="deleteclick(<?php echo e($tabledata->id); ?>)">
<!--begin::Svg Icon | path: icons/duotune/general/gen027.svg-->
<span class="svg-icon svg-icon-6 svg-icon-danger">
<svg xmlns="http://www.w3.org/2000/svg" width="24"
height="24" viewBox="0 0 24 24" fill="none">
<path
d="M5 9C5 8.44772 5.44772 8 6 8H18C18.5523 8 19 8.44772 19 9V18C19 19.6569 17.6569 21 16 21H8C6.34315 21 5 19.6569 5 18V9Z"
fill="black"/>
<path opacity="0.5"
d="M5 5C5 4.44772 5.44772 4 6 4H18C18.5523 4 19 4.44772 19 5V5C19 5.55228 18.5523 6 18 6H6C5.44772 6 5 5.55228 5 5V5Z"
fill="black"/>
<path opacity="0.5"
d="M9 4C9 3.44772 9.44772 3 10 3H14C14.5523 3 15 3.44772 15 4V4H9V4Z"
fill="black"/>
</svg>
</span>
<!--end::Svg Icon-->
</button>
<!--end::Delete-->
</td>
<!--begin::Name=-->
<td class="text-center">
<?php if($tabledata->status==1): ?>
<span class="badge badge-success fs-9 m-1 text-dark">Active</span>
<?php else: ?>
<span class="badge badge-secondary fs-9 m-1 text-white">Inactive</span>
<?php endif; ?>
</td>
<td class="text-black text-center"><?php echo e($tabledata->type_of_employee); ?></td>
<td class="text-black text-center"><?php echo e($tabledata->emp_type_shrt_name); ?></td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php else: ?>
<tr>
<td class="p-6 justify-content-center text-center " colspan="7">
<h2 class="fs-2 text-danger fw-bold">No Data Available</h2>
</td>
</tr>
<?php endif; ?>
</tbody>
</table>
<div class="col-12 justify-content-end">
<?php echo e($datatables->links('livewire.pagination-livewire')); ?>
</div>
</div>
</div>
</div>
<div class="modal fade" id="kt_modal_add_upadate" data-bs-backdrop="static" tabindex="-1" aria-hidden="true"
wire:ignore.self>
<!--begin::Modal dialog-->
<div class="modal-dialog modal-dialog-centered mw-900px">
<!--begin::Modal content-->
<div class="modal-content">
<!--begin::Modal header-->
<div class="modal-header">
<!--begin::Modal title-->
<?php if($modelid): ?>
<h2 class="fw-bolder">Update Employee Informations</h2>
<?php else: ?>
<h2 class="fw-bolder">New Employee Informations</h2>
<?php endif; ?>
<!--end::Modal title-->
<!--begin::Close-->
<div class="btn btn-icon btn-sm btn-active-icon-primary"
data-kt-permissions-modal-action="close" onclick="popupmodal()" wire:click="resetvalid">
<!--begin::Svg Icon | path: icons/duotune/arrows/arr061.svg-->
<span class="svg-icon svg-icon-1">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"
viewBox="0 0 24 24" fill="none">
<rect opacity="0.5" x="6" y="17.3137" width="16" height="2"
rx="1" transform="rotate(-45 6 17.3137)" fill="black"/>
<rect x="7.41422" y="6" width="16" height="2" rx="1"
transform="rotate(45 7.41422 6)" fill="black"/>
</svg>
</span>
<!--end::Svg Icon-->
</div>
<!--end::Close-->
</div>
<!--end::Modal header-->
<!--begin::Modal body-->
<div class="modal-body scroll-y mx-5 mx-xl-15 my-7">
<!--begin::Form-->
<!--begin::Input group-->
<div class="row">
<div class="col-md-6 fv-row mb-5">
<!--begin::Label-->
<label class="fs-6 fw-bold form-label mb-2">
<span class="required">Employee Type</span>
</label>
<!--end::Label-->
<!--begin::Input-->
<input class="form-control border-dark border-1"
placeholder="Enter Employee Type" name="type_of_employee" autocomplete="off"
wire:model.defer="type_of_employee"/>
<!--end::Input-->
<?php $__errorArgs = ['type_of_employee'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> <span class="text-danger"><?php echo e($message); ?></span> <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
</div>
<div class="col-md-6 fv-row mb-5">
<!--begin::Label-->
<label class="fs-6 fw-bold form-label mb-2">
<span>Short Name</span>
</label>
<!--end::Label-->
<!--begin::Input-->
<input class="form-control border-dark border-1"
placeholder="Enter Employee Type Short Name" name="emp_type_shrt_name" autocomplete="off"
wire:model.defer="emp_type_shrt_name"/>
<!--end::Input-->
<?php $__errorArgs = ['emp_type_shrt_name'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> <span class="text-danger"><?php echo e($message); ?></span> <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
</div>
<?php if($modelid): ?>
<div class="d-flex flex-stack mb-8 mt-3">
<!--begin::Label-->
<div class="me-5">
<label class="fs-6 fw-bold">Status</label>
</div>
<!--end::Label-->
<!--begin::Switch-->
<label class="form-check form-switch form-check-custom form-check-solid">
<?php if($status): ?>
<input class="form-check-input h-20px w-30px" type="checkbox" name="status"
wire:model.debounce.500ms="status" checked/>
<?php else: ?>
<input class="form-check-input h-20px w-30px" type="checkbox" name="status"
wire:model.debounce.500ms="status"/>
<?php endif; ?>
<span class="form-check-label fw-bold text-gray-400">Active</span>
</label>
<!--end::Switch-->
</div>
<?php endif; ?>
</div>
<!--end::Input group-->
<!--begin::Actions-->
<div class="text-center pt-15">
<button type="reset" class="btn btn-light me-3"
data-kt-permissions-modal-action="cancel" onclick="popupmodal()"
wire:click="resetvalid">Discard
</button>
<?php if($modelid): ?>
<button type="button" wire:click="update" wire:loading.class.remove="btn-info" class="btn btn-info">
<span class="indicator-label" >Update</span>
<span class="indicator-label" wire:loading wire:target="update">
Please wait...
</span>
</button>
<?php else: ?>
<button type="button" wire:click="submit" wire:loading.class.remove="btn-info" class="btn btn-info">
<span class="indicator-label" >Submit</span>
<span class="indicator-progress" wire:loading wire:target="submit">
Please wait...
</span>
</button>
<?php endif; ?>
</div>
<!--end::Actions-->
<!--end::Form-->
</div>
<!--end::Modal body-->
</div>
<!--end::Modal content-->
</div>
<!--end::Modal dialog-->
</div>
<!--end::Modal - Add permissions-->
<!--end::Modals-->
<div class="modal fade" id="deleteConfirmation" data-bs-backdrop="static" data-bs-keyboard="false"
tabindex="-1" aria-labelledby="deleteConfirmation" aria-hidden="true" wire:ignore.self>
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title"
id="staticBackdropLabel"><?php echo e(__('Delete Employee Information')); ?></h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close">
<span class="svg-icon svg-icon-muted svg-icon-2"><svg xmlns="http://www.w3.org/2000/svg"
width="30" height="30"
viewBox="0 0 24 24"
fill="none">
<path opacity="0.3"
d="M12 10.6L14.8 7.8C15.2 7.4 15.8 7.4 16.2 7.8C16.6 8.2 16.6 8.80002 16.2 9.20002L13.4 12L12 10.6ZM10.6 12L7.8 14.8C7.4 15.2 7.4 15.8 7.8 16.2C8 16.4 8.3 16.5 8.5 16.5C8.7 16.5 8.99999 16.4 9.19999 16.2L12 13.4L10.6 12Z"
fill="black"/>
<path
d="M22 12C22 17.5 17.5 22 12 22C6.5 22 2 17.5 2 12C2 6.5 6.5 2 12 2C17.5 2 22 6.5 22 12ZM13.4 12L16.2 9.20001C16.6 8.80001 16.6 8.19999 16.2 7.79999C15.8 7.39999 15.2 7.39999 14.8 7.79999L12 10.6L9.2 7.79999C8.8 7.39999 8.2 7.39999 7.8 7.79999C7.4 8.19999 7.4 8.80001 7.8 9.20001L10.6 12L7.8 14.8C7.4 15.2 7.4 15.8 7.8 16.2C8 16.4 8.3 16.5 8.5 16.5C8.7 16.5 9 16.4 9.2 16.2L12 13.4L14.8 16.2C15 16.4 15.3 16.5 15.5 16.5C15.7 16.5 16 16.4 16.2 16.2C16.6 15.8 16.6 15.2 16.2 14.8L13.4 12Z"
fill="black"/>
</svg></span>
</button>
</div>
<div class="modal-body">
<?php echo e(__('Are you sure you want to delete this data ? Once the data is deleted, all of its resources and data will be permanently deleted.')); ?>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Cancel</button>
<button type="button" class="btn btn-danger" wire:click="delete" wire:loading.class.remove="btn-danger">
<span class="indicator-label" wire:loading.remove>Delete</span>
<span class="indicator-progress" wire:loading wire:target="delete">
Please wait...
</span>
</button>
</div>
</div>
</div>
</div>
</div>
<?php /**PATH /var/www/hrms.uiet.co.in/resources/views/livewire/masters/employee-type-livewire.blade.php ENDPATH**/ ?>