File manager - Edit - /var/www/payraty/hris/storage/framework/views/6a8ae8092609ff60c74f6e3afe535193.php
Back
<?php $__env->startSection('page-title'); ?> <?php echo e(__('Manage Trainer')); ?> <?php $__env->stopSection(); ?> <?php $__env->startSection('breadcrumb'); ?> <li class="breadcrumb-item"><a href="<?php echo e(route('dashboard')); ?>"><?php echo e(__('Home')); ?></a></li> <li class="breadcrumb-item"><?php echo e(__('Trainer')); ?></li> <?php $__env->stopSection(); ?> <?php $__env->startSection('action-button'); ?> <a href="#" data-url="<?php echo e(route('trainer.file.import')); ?>" data-ajax-popup="true" data-title="<?php echo e(__('Import Trainer CSV file')); ?>" data-bs-toggle="tooltip" title="" class="btn btn-sm btn-primary me-1" data-bs-original-title="<?php echo e(__('Import')); ?>"> <i class="ti ti-file-import"></i> </a> <a href="<?php echo e(route('trainer.export')); ?>" class="btn btn-sm btn-primary me-1" data-bs-toggle="tooltip" data-bs-original-title="<?php echo e(__('Export')); ?>"> <i class="ti ti-file-export"></i> </a> <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('Create Trainer')): ?> <a href="#" data-url="<?php echo e(route('trainer.create')); ?>" data-ajax-popup="true" data-size="lg" data-title="<?php echo e(__('Create New Trainer')); ?>" data-bs-toggle="tooltip" title="" class="btn btn-sm btn-primary" data-bs-original-title="<?php echo e(__('Create')); ?>"> <i class="ti ti-plus"></i> </a> <?php endif; ?> <?php $__env->stopSection(); ?> <?php $__env->startSection('content'); ?> <div class="row"> <div class="col-xl-12"> <div class="card"> <div class="card-header card-body table-border-style"> <div class="table-responsive"> <table class="table" id="pc-dt-simple"> <thead> <tr> <th><?php echo e(__('Branch')); ?></th> <th><?php echo e(__('Full Name')); ?></th> <th><?php echo e(__('Contact')); ?></th> <th><?php echo e(__('Email')); ?></th> <?php if(Gate::check('Edit Trainer') || Gate::check('Delete Trainer') || Gate::check('Show Trainer')): ?> <th width="200px"><?php echo e(__('Action')); ?></th> <?php endif; ?> </tr> </thead> <tbody> <?php $__currentLoopData = $trainers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $trainer): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td><?php echo e(!empty($trainer->branches) ? $trainer->branches->name : ''); ?></td> <td><?php echo e($trainer->firstname . ' ' . $trainer->lastname); ?></td> <td><?php echo e($trainer->contact); ?></td> <td><?php echo e($trainer->email); ?></td> <td class="Action"> <?php if(Gate::check('Edit Trainer') || Gate::check('Delete Trainer') || Gate::check('Show Trainer')): ?> <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('Show Trainer')): ?> <div class="action-btn me-2"> <a href="#" class="mx-3 btn btn-sm bg-warning align-items-center" data-size="lg" data-url="<?php echo e(route('trainer.show', $trainer->id)); ?>" data-ajax-popup="true" data-size="md" data-bs-toggle="tooltip" title="" data-title="<?php echo e(__('Trainer Details')); ?>" data-bs-original-title="<?php echo e(__('View')); ?>"> <span class="text-white"><i class="ti ti-eye"></i></span> </a> </div> <?php endif; ?> <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('Edit Trainer')): ?> <div class="action-btn me-2"> <a href="#" class="mx-3 btn btn-sm bg-info align-items-center" data-size="lg" data-url="<?php echo e(route('trainer.edit', $trainer->id)); ?>" data-ajax-popup="true" data-size="md" data-bs-toggle="tooltip" title="" data-title="<?php echo e(__('Edit Trainer')); ?>" data-bs-original-title="<?php echo e(__('Edit')); ?>"> <span class="text-white"><i class="ti ti-pencil"></i></span> </a> </div> <?php endif; ?> <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('Delete Trainer')): ?> <div class="action-btn"> <?php echo Form::open([ 'method' => 'DELETE', 'route' => ['trainer.destroy', $trainer->id], 'id' => 'delete-form-' . $trainer->id, ]); ?> <a href="#" class="mx-3 btn btn-sm bg-danger align-items-center bs-pass-para" data-bs-toggle="tooltip" title="" data-bs-original-title="Delete" aria-label="Delete"><span class="text-white"><i class="ti ti-trash"></i></span></a> </form> </div> <?php endif; ?> <?php endif; ?> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tbody> </table> </div> </div> </div> </div> </div> <?php $__env->stopSection(); ?> <?php echo $__env->make('layouts.admin', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /var/www/payraty/hris/resources/views/trainer/index.blade.php ENDPATH**/ ?>
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings