ok
Direktori : /home2/selectio/www/fms-worksuite/storage/framework/views/ |
Current File : /home2/selectio/www/fms-worksuite/storage/framework/views/4824268060306abc315a5a50926712a7.php |
<?php $addImmigrationPermission = user()->permission('add_immigration'); $viewImmigrationPermission = user()->permission('view_immigration'); $deleteImmigrationPermission = user()->permission('delete_immigration'); $editImmigrationPermission = user()->permission('edit_immigration'); ?> <!-- PASSPORT ROW START --> <div class="row"> <!-- USER CARDS START --> <div class="col-xl-12 col-lg-12 col-md-12 mb-4 mb-xl-0 mb-lg-4 mb-md-0 mt-5"> <?php if(is_null($passport)): ?> <?php if($addImmigrationPermission == 'all' || ($addImmigrationPermission == 'owned' && ($employee->id == user()->id)) ): ?> <?php if (isset($component)) { $__componentOriginalcf8d12533ff890e0d6573daf32b7618d = $component; } ?> <?php $component = App\View\Components\Forms\ButtonPrimary::resolve(['icon' => 'plus'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.button-primary'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\Forms\ButtonPrimary::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['class' => 'mr-3 add-passport mb-3 ']); ?> <?php echo app('translator')->get('app.addPassport'); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalcf8d12533ff890e0d6573daf32b7618d)): ?> <?php $component = $__componentOriginalcf8d12533ff890e0d6573daf32b7618d; ?> <?php unset($__componentOriginalcf8d12533ff890e0d6573daf32b7618d); ?> <?php endif; ?> <?php endif; ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginalbc9540fa671f26a0f8028a5a8d8f93e9 = $component; } ?> <?php $component = App\View\Components\Cards\Data::resolve(['title' => __('modules.employees.passportDetails')] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('cards.data'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\Cards\Data::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php if($passport): ?> <?php $__env->slot('action', null, []); ?> <div class="dropdown"> <button class="btn f-14 px-0 py-0 text-dark-grey dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <i class="fa fa-ellipsis-h"></i> </button> <div class="dropdown-menu dropdown-menu-right border-grey rounded b-shadow-4 p-0" aria-labelledby="dropdownMenuLink" tabindex="0"> <?php if($editImmigrationPermission == 'all' || ($editImmigrationPermission == 'added' && $passport->added_by == user()->id) || ($editImmigrationPermission == 'owned' && ($passport->user_id == user()->id && $passport->added_by != user()->id)) || ($editImmigrationPermission == 'both' && ($passport->added_by == user()->id || $passport->user_id == user()->id))): ?> <a class="dropdown-item edit-passport" data-id = "<?php echo e($passport->id ? $passport->id : ''); ?>" href="javascript:;"><?php echo app('translator')->get('app.edit'); ?></a> <?php endif; ?> <?php if($deleteImmigrationPermission == 'all' || ($deleteImmigrationPermission == 'added' && $passport->added_by == user()->id) || ($deleteImmigrationPermission == 'owned' && ($passport->user_id == user()->id && $passport->added_by != user()->id)) || ($deleteImmigrationPermission == 'both' && ($passport->added_by == user()->id || $passport->user_id == user()->id))): ?> <a class="dropdown-item delete-passport" data-id = "<?php echo e($passport->id ? $passport->id : ''); ?>" href="javascript:;"><?php echo app('translator')->get('app.delete'); ?></a> <?php endif; ?> </div> </div> <?php $__env->endSlot(); ?> <?php if (isset($component)) { $__componentOriginalfc012cd47eee5094db538668bc6edefd = $component; } ?> <?php $component = App\View\Components\Cards\DataRow::resolve(['label' => __('modules.employees.passportNumber'),'value' => $passport->passport_number ?? '--'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('cards.data-row'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\Cards\DataRow::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalfc012cd47eee5094db538668bc6edefd)): ?> <?php $component = $__componentOriginalfc012cd47eee5094db538668bc6edefd; ?> <?php unset($__componentOriginalfc012cd47eee5094db538668bc6edefd); ?> <?php endif; ?> <div class="col-12 px-0 pb-3 d-block d-lg-flex d-md-flex"> <p class="mb-0 text-lightest f-14 w-30 d-inline-block text-capitalize"> <?php echo app('translator')->get('app.nationality'); ?></p> <p class="mb-0 text-dark-grey f-14 w-70"> <span class='flag-icon flag-icon-<?php echo e(strtolower($passport->country->iso)); ?> flag-icon-squared'></span> <?php echo e($passport->country->nationality); ?> <?php echo e('('. $passport->country->name . ')'); ?> </p> </div> <?php if (isset($component)) { $__componentOriginalfc012cd47eee5094db538668bc6edefd = $component; } ?> <?php $component = App\View\Components\Cards\DataRow::resolve(['label' => __('modules.employees.issueDate'),'value' => $passport->issue_date ? $passport->issue_date->format(company()->date_format) : '--'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('cards.data-row'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\Cards\DataRow::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalfc012cd47eee5094db538668bc6edefd)): ?> <?php $component = $__componentOriginalfc012cd47eee5094db538668bc6edefd; ?> <?php unset($__componentOriginalfc012cd47eee5094db538668bc6edefd); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginalfc012cd47eee5094db538668bc6edefd = $component; } ?> <?php $component = App\View\Components\Cards\DataRow::resolve(['label' => __('modules.employees.expiryDate'),'value' => $passport->expiry_date ? $passport->expiry_date->format(company()->date_format) : '--'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('cards.data-row'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\Cards\DataRow::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalfc012cd47eee5094db538668bc6edefd)): ?> <?php $component = $__componentOriginalfc012cd47eee5094db538668bc6edefd; ?> <?php unset($__componentOriginalfc012cd47eee5094db538668bc6edefd); ?> <?php endif; ?> <div class="col-12 px-0 pb-3 d-block d-lg-flex d-md-flex"> <p class="mb-0 text-lightest f-14 w-30 d-inline-block text-capitalize"> <?php echo app('translator')->get('modules.employees.scanCopy'); ?></p> <p class="mb-0 text-dark-grey f-14 w-70"> <?php if($passport->file): ?> <img data-toggle="tooltip" style="height:50px;" src="<?php echo e($passport->image_url); ?>"> <?php else: ?> -- <?php endif; ?> </p> </div> <?php else: ?> <?php if (isset($component)) { $__componentOriginal1cadea97ad834515c6e69c0ef44e7014 = $component; } ?> <?php $component = App\View\Components\Cards\NoRecordFoundList::resolve(['colspan' => '5'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('cards.no-record-found-list'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\Cards\NoRecordFoundList::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginal1cadea97ad834515c6e69c0ef44e7014)): ?> <?php $component = $__componentOriginal1cadea97ad834515c6e69c0ef44e7014; ?> <?php unset($__componentOriginal1cadea97ad834515c6e69c0ef44e7014); ?> <?php endif; ?> <?php endif; ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalbc9540fa671f26a0f8028a5a8d8f93e9)): ?> <?php $component = $__componentOriginalbc9540fa671f26a0f8028a5a8d8f93e9; ?> <?php unset($__componentOriginalbc9540fa671f26a0f8028a5a8d8f93e9); ?> <?php endif; ?> </div> <!-- USER CARDS END --> </div> <!-- PASSPORT ROW END --> <!-- VISA ROW START --> <div class="row"> <!-- USER CARDS START --> <div class="col-xl-12 col-lg-12 col-md-12 mb-4 mb-xl-0 mb-lg-4 mb-md-0 mt-5"> <?php if($addImmigrationPermission == 'all' || ($addImmigrationPermission == 'owned' && ($employee->id == user()->id)) ): ?> <?php if (isset($component)) { $__componentOriginalcf8d12533ff890e0d6573daf32b7618d = $component; } ?> <?php $component = App\View\Components\Forms\ButtonPrimary::resolve(['icon' => 'plus'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.button-primary'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\Forms\ButtonPrimary::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['id' => 'add-visa','class' => 'mb-3']); ?> <?php echo app('translator')->get('app.addVisa'); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalcf8d12533ff890e0d6573daf32b7618d)): ?> <?php $component = $__componentOriginalcf8d12533ff890e0d6573daf32b7618d; ?> <?php unset($__componentOriginalcf8d12533ff890e0d6573daf32b7618d); ?> <?php endif; ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginalbc9540fa671f26a0f8028a5a8d8f93e9 = $component; } ?> <?php $component = App\View\Components\Cards\Data::resolve(['title' => __('modules.employees.visaDetails'),'otherClasses' => 'border-0 p-0 d-flex justify-content-between align-items-center table-responsive-sm'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('cards.data'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\Cards\Data::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php if (isset($component)) { $__componentOriginal7d9f6e0b9001f5841f72577781b2d17f = $component; } ?> <?php $component = App\View\Components\Table::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('table'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\Table::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['class' => 'border-0 pb-3 admin-dash-table table-hover']); ?> <?php $__env->slot('thead', null, []); ?> <th class="pl-20">#</th> <th><?php echo app('translator')->get('modules.employees.visaNumber'); ?></th> <th><?php echo app('translator')->get('app.country'); ?></th> <th><?php echo app('translator')->get('modules.employees.issueDate'); ?></th> <th><?php echo app('translator')->get('modules.employees.expiryDate'); ?></th> <th class="text-right pr-20"><?php echo app('translator')->get('app.action'); ?></th> <?php $__env->endSlot(); ?> <?php $__empty_1 = true; $__currentLoopData = $visa; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $visaValue): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?> <tr id="row-<?php echo e($visaValue->id); ?>"> <td class="pl-20"><?php echo e($key + 1); ?></td> <td> <?php echo e($visaValue->visa_number); ?> </td> <td> <?php echo e($visaValue->country->name); ?> </td> <td> <?php echo e($visaValue->issue_date->format(company()->date_format)); ?> </td> <td> <?php echo e($visaValue->expiry_date->format(company()->date_format)); ?> </td> <td class="text-right pr-20"> <div class="task_view"> <div class="dropdown"> <a class="task_view_more d-flex align-items-center justify-content-center dropdown-toggle" type="link" id="dropdownMenuLink-3" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <i class="icon-options-vertical icons"></i> </a> <div class="dropdown-menu dropdown-menu-right"> <?php if($viewImmigrationPermission == 'all' || ($viewImmigrationPermission == 'added' && $visaValue->added_by == user()->id) || ($viewImmigrationPermission == 'owned' && ($visaValue->user_id == user()->id && $visaValue->added_by != user()->id)) || ($viewImmigrationPermission == 'both' && ($visaValue->added_by == user()->id || $visaValue->user_id == user()->id))): ?> <a class="dropdown-item openRightModal" href="<?php echo e(route('employee-visa.show', $visaValue->id )); ?>" data-id="<?php echo e($visaValue->id); ?>"> <i class="fa fa-eye mr-2"></i> <?php echo app('translator')->get('app.view'); ?> </a> <?php endif; ?> <?php if($editImmigrationPermission == 'all' || ($editImmigrationPermission == 'added' && $visaValue->added_by == user()->id) || ($editImmigrationPermission == 'owned' && ($visaValue->user_id == user()->id && $visaValue->added_by != user()->id)) || ($editImmigrationPermission == 'both' && ($visaValue->added_by == user()->id || $visaValue->user_id == user()->id))): ?> <a class="dropdown-item edit-visa" data-id="<?php echo e($visaValue->id); ?>" href="javascript:;"> <i class="fa fa-edit mr-2"></i> <?php echo app('translator')->get('app.edit'); ?> </a> <?php endif; ?> <?php if($deleteImmigrationPermission == 'all' || ($deleteImmigrationPermission == 'added' && $visaValue->added_by == user()->id) || ($deleteImmigrationPermission == 'owned' && ($visaValue->user_id == user()->id && $visaValue->added_by != user()->id)) || ($deleteImmigrationPermission == 'both' && ($visaValue->added_by == user()->id || $visaValue->user_id == user()->id))): ?> <a class="dropdown-item delete-visa" href="javascript:;" data-id="<?php echo e($visaValue->id); ?>"> <i class="fa fa-trash mr-2"></i> <?php echo app('translator')->get('app.delete'); ?> </a> <?php endif; ?> </div> </div> </div> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?> <?php if (isset($component)) { $__componentOriginal1cadea97ad834515c6e69c0ef44e7014 = $component; } ?> <?php $component = App\View\Components\Cards\NoRecordFoundList::resolve(['colspan' => '5'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('cards.no-record-found-list'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\Cards\NoRecordFoundList::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginal1cadea97ad834515c6e69c0ef44e7014)): ?> <?php $component = $__componentOriginal1cadea97ad834515c6e69c0ef44e7014; ?> <?php unset($__componentOriginal1cadea97ad834515c6e69c0ef44e7014); ?> <?php endif; ?> <?php endif; ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginal7d9f6e0b9001f5841f72577781b2d17f)): ?> <?php $component = $__componentOriginal7d9f6e0b9001f5841f72577781b2d17f; ?> <?php unset($__componentOriginal7d9f6e0b9001f5841f72577781b2d17f); ?> <?php endif; ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__componentOriginalbc9540fa671f26a0f8028a5a8d8f93e9)): ?> <?php $component = $__componentOriginalbc9540fa671f26a0f8028a5a8d8f93e9; ?> <?php unset($__componentOriginalbc9540fa671f26a0f8028a5a8d8f93e9); ?> <?php endif; ?> </div> <!-- USER CARDS END --> </div> <!-- VISA ROW END --> <script> // Visa Start $('body').on('click', '.delete-visa', function() { var id = $(this).data('id'); Swal.fire({ title: "<?php echo app('translator')->get('messages.sweetAlertTitle'); ?>", text: "<?php echo app('translator')->get('messages.recoverRecord'); ?>", icon: 'warning', showCancelButton: true, focusConfirm: false, confirmButtonText: "<?php echo app('translator')->get('messages.confirmDelete'); ?>", cancelButtonText: "<?php echo app('translator')->get('app.cancel'); ?>", customClass: { confirmButton: 'btn btn-primary mr-3', cancelButton: 'btn btn-secondary' }, showClass: { popup: 'swal2-noanimation', backdrop: 'swal2-noanimation' }, buttonsStyling: false }).then((result) => { if (result.isConfirmed) { var url = "<?php echo e(route('employee-visa.destroy', ':id')); ?>"; url = url.replace(':id', id); var token = "<?php echo e(csrf_token()); ?>"; $.easyAjax({ type: 'POST', url: url, blockUI: true, data: { '_token': token, '_method': 'DELETE' }, success: function(response) { if (response.status == "success") { window.location.reload(); } } }); } }); }); $('#add-visa').click(function() { var url = "<?php echo e(route('employee-visa.create').'?empid='.$employee->id); ?>"; $(MODAL_LG + ' ' + MODAL_HEADING).html('...'); $.ajaxModal(MODAL_LG, url); }) $('.edit-visa').click(function() { var id = $(this).data('id'); var url = "<?php echo e(route('employee-visa.edit', ':id')); ?>"; url = url.replace(':id', id); $(MODAL_LG + ' ' + MODAL_HEADING).html('...'); $.ajaxModal(MODAL_LG, url); }); // Visa End // Passport Start $('.add-passport').click(function(){ var url = "<?php echo e(route('passport.create').'?empid='.$employee->id); ?>"; $(MODAL_LG + ' ' + MODAL_HEADING).html('...'); $.ajaxModal(MODAL_LG, url); }); $('.edit-passport').click(function(){ var id = $(this).data('id'); var url = "<?php echo e(route('passport.edit', ':id').'?empid='.$employee->id); ?>"; url = url.replace(':id', id); $(MODAL_LG + ' ' + MODAL_HEADING).html('...'); $.ajaxModal(MODAL_LG, url); }); $('body').on('click', '.delete-passport', function () { var id = $(this).data('id'); Swal.fire({ title: "<?php echo app('translator')->get('messages.sweetAlertTitle'); ?>", text: "<?php echo app('translator')->get('messages.recoverRecord'); ?>", icon: 'warning', showCancelButton: true, focusConfirm: false, confirmButtonText: "<?php echo app('translator')->get('messages.confirmDelete'); ?>", cancelButtonText: "<?php echo app('translator')->get('app.cancel'); ?>", customClass: { confirmButton: 'btn btn-primary mr-3', cancelButton: 'btn btn-secondary' }, showClass: { popup: 'swal2-noanimation', backdrop: 'swal2-noanimation' }, buttonsStyling: false }).then((result) => { if (result.isConfirmed) { var url = "<?php echo e(route('passport.destroy', ':id')); ?>"; url = url.replace(':id', id); var token = "<?php echo e(csrf_token()); ?>"; $.easyAjax({ type: 'POST', url: url, blockUI: true, data: { '_token': token, '_method': 'DELETE' }, success: function (response) { if (response.status == "success") { window.location.reload(); } } }); } }); }); // Passport End </script> <?php /**PATH /home2/selectio/public_html/fms-worksuite/resources/views/employees/ajax/immigration.blade.php ENDPATH**/ ?>