File manager - Edit - /var/www/payraty/hris/storage/framework/views/bc2cd8b1b70caabde98a751f6bd69133.php
Back
<?php $__env->startSection('page-title', __('Budgets')); ?> <?php $__env->startSection('action-button'); ?> <a href="#" data-url="<?php echo e(route('budgets.create')); ?>" data-size="lg" data-ajax-popup="true" data-title="<?php echo e(__('Create New Budget')); ?>" class="btn btn-sm btn-primary"> <i class="ti ti-plus"></i> <?php echo e(__('Add New Budget')); ?> </a> <?php $__env->stopSection(); ?> <?php $__env->startSection('content'); ?> <div class="row"> <div class="col-12"> <?php echo $__env->make('layouts.hrm_setup', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?> </div> <div class="col-md-12"> <div class="card"> <div class="card-body table-border-style"> <div class="table-responsive"> <table class="table align-middle datatable"> <thead> <tr> <th><?php echo e(__('Name')); ?></th> <th><?php echo e(__('Amount')); ?></th> <th><?php echo e(__('Scope')); ?></th> <th><?php echo e(__('Department')); ?></th> <th><?php echo e(__('Period')); ?></th> <th><?php echo e(__('Notes')); ?></th> <th width="200px"><?php echo e(__('Actions')); ?></th> </tr> </thead> <tbody> <?php $__empty_1 = true; $__currentLoopData = $budgets; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $budget): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?> <tr> <td><?php echo e($budget->name); ?></td> <td><?php echo e(number_format($budget->amount, 2)); ?></td> <td><?php echo e(ucfirst($budget->type)); ?></td> <td><?php echo e($budget->department?->name ?? '—'); ?></td> <td> <?php echo e($budget->start_date ? \Carbon\Carbon::parse($budget->start_date)->format('M d, Y') : '—'); ?> - <?php echo e($budget->end_date ? \Carbon\Carbon::parse($budget->end_date)->format('M d, Y') : '—'); ?> </td> <td><?php echo e(Str::limit($budget->notes, 40) ?? '—'); ?></td> <td class="Action text-end"> <div class="d-flex justify-content-end align-items-center"> <div class="action-btn bg-info ms-2"> <a href="#" data-url="<?php echo e(route('budgets.edit', $budget->id)); ?>" data-size="lg" data-ajax-popup="true" data-title="<?php echo e(__('Edit Budget')); ?>" class="btn btn-sm align-items-center" data-bs-toggle="tooltip" title="<?php echo e(__('Edit')); ?>"> <i class="ti ti-pencil text-white"></i> </a> </div> <div class="action-btn bg-danger ms-2"> <?php echo Form::open([ 'method' => 'DELETE', 'route' => ['budgets.destroy', $budget->id], 'id' => 'delete-form-' . $budget->id ]); ?> <a href="#" class="btn btn-sm align-items-center bs-pass-para" data-bs-toggle="tooltip" title="<?php echo e(__('Delete')); ?>" data-confirm="<?php echo e(__('Are You Sure?')); ?>" data-confirm-yes="document.getElementById('delete-form-<?php echo e($budget->id); ?>').submit();"> <i class="ti ti-trash text-white"></i> </a> <?php echo Form::close(); ?> </div> </div> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?> <tr> <td colspan="7" class="text-center text-muted"> <?php echo e(__('No budgets found.')); ?> </td> </tr> <?php endif; ?> </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/budgets/index.blade.php ENDPATH**/ ?>
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings