<?php $__env->startSection('page-title', __('Equity Awards')); ?>

<?php $__env->startSection('action-button'); ?>
    <a href="#" data-url="<?php echo e(route('equity-awards.create')); ?>" data-size="lg" data-ajax-popup="true"
        data-title="<?php echo e(__('Create Equity Award')); ?>" class="btn btn-sm btn-primary">
        <i class="ti ti-plus"></i> <?php echo e(__('Add Equity Award')); ?>

    </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 datatable">
                            <thead>
                                <tr>
                                    <th><?php echo e(__('Job Grade')); ?></th>
                                    <th><?php echo e(__('Award Type')); ?></th>
                                    <th><?php echo e(__('Performance Rating')); ?></th>
                                    <th><?php echo e(__('Equity Type')); ?></th>
                                    <th><?php echo e(__('Value Type')); ?></th>
                                    <th><?php echo e(__('Value Amount')); ?></th>
                                    <th><?php echo e(__('Vesting Period (Months)')); ?></th>
                                    <th class="text-end"><?php echo e(__('Actions')); ?></th>
                                </tr>
                            </thead>
                            <tbody>
                                <?php $__empty_1 = true; $__currentLoopData = $awards; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $award): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                                                            <tr>
                                                                <td><?php echo e($award->jobGrade?->name ?? '-'); ?></td>
                                                                <td><?php echo e(ucfirst(str_replace('_', ' ', $award->award_type))); ?></td>
                                                                <td><?php echo e(ucfirst($award->performance_rating)); ?></td>
                                                                <td><?php echo e(ucfirst($award->equity_type)); ?></td>
                                                                <td><?php echo e(ucfirst($award->value_type)); ?></td>
                                                                <td><?php echo e(number_format($award->value_amount, 2)); ?></td>
                                                                <td><?php echo e($award->vesting_months); ?></td>
                                                                <td class="text-end">
                                                                    <div class="action-btn bg-warning ms-2">
                                                                        <a href="#" data-url="<?php echo e(route('equity-awards.edit', $award->id)); ?>"
                                                                            data-size="lg" data-ajax-popup="true"
                                                                            data-title="<?php echo e(__('Edit Equity Award')); ?>"
                                                                            class="mx-3 btn btn-sm align-items-center">
                                                                            <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' => ['equity-awards.destroy', $award->id],
                                        'id' => 'delete-form-' . $award->id,
                                    ]); ?>

                                                                        <a href="#" class="mx-3 btn btn-sm align-items-center bs-pass-para"
                                                                            data-confirm="<?php echo e(__('Are You Sure?')); ?>"
                                                                            data-confirm-yes="document.getElementById('delete-form-<?php echo e($award->id); ?>').submit();">
                                                                            <i class="ti ti-trash text-white"></i>
                                                                        </a>
                                                                        <?php echo Form::close(); ?>

                                                                    </div>
                                                                </td>
                                                            </tr>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                                    <tr>
                                        <td colspan="8" class="text-center"><?php echo e(__('No equity awards 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/equity_awards/index.blade.php ENDPATH**/ ?>