
<?php $__env->startSection('title', 'Employee Details'); ?>
<?php $__env->startSection('content'); ?>
<div class="page-content">
    <div class="row">
        <div class="col-md-12 grid-margin stretch-card">
            <div class="card">
                <div class="card-body">
                    <div class="d-flex justify-content-between align-items-center mb-3">
                        <h6 class="card-title">Employee Details</h6>
                        <a href="<?php echo e(route('employees.edit', $employee)); ?>" class="btn btn-primary">
                            <i class="fas fa-edit me-2"></i>Edit Employee
                        </a>
                    </div>

                    <div class="row">
                        <div class="col-md-6">
                            <table class="table table-borderless">
                                <tr>
                                    <td><strong>Name:</strong></td>
                                    <td><?php echo e($employee->name); ?></td>
                                </tr>
                                <tr>
                                    <td><strong>Email:</strong></td>
                                    <td><?php echo e($employee->email ?: '-'); ?></td>
                                </tr>
                                <tr>
                                    <td><strong>Phone:</strong></td>
                                    <td><?php echo e($employee->phone ?: '-'); ?></td>
                                </tr>
                                <tr>
                                    <td><strong>Gender:</strong></td>
                                    <td><?php echo e(ucfirst($employee->gender ?: '-')); ?></td>
                                </tr>
                                <tr>
                                    <td><strong>Address:</strong></td>
                                    <td><?php echo e($employee->address ?: '-'); ?></td>
                                </tr>
                            </table>
                        </div>
                        <div class="col-md-6">
                            <table class="table table-borderless">
                                <tr>
                                    <td><strong>Employee Type:</strong></td>
                                    <td>
                                        <span class="badge bg-primary"><?php echo e(ucfirst(str_replace('_', ' ', $employee->employee_type))); ?></span>
                                    </td>
                                </tr>
                                <tr>
                                    <td><strong>Wage Type:</strong></td>
                                    <td>
                                        <span class="badge bg-info"><?php echo e(ucfirst(str_replace('_', ' ', $employee->wage_type))); ?></span>
                                    </td>
                                </tr>
                                <tr>
                                    <td><strong>Status:</strong></td>
                                    <td>
                                        <span class="badge bg-<?php echo e($employee->is_active ? 'success' : 'danger'); ?>">
                                            <?php echo e($employee->is_active ? 'Active' : 'Inactive'); ?>

                                        </span>
                                    </td>
                                </tr>
                                <?php if($employee->shop_id): ?>
                                <tr>
                                    <td><strong>Shop:</strong></td>
                                    <td><?php echo e($employee->shop->name ?? '-'); ?></td>
                                </tr>
                                <?php endif; ?>
                                <?php if($employee->allow_login): ?>
                                <tr>
                                    <td><strong>Username:</strong></td>
                                    <td><?php echo e($employee->username); ?></td>
                                </tr>
                                <?php endif; ?>
                            </table>
                        </div>
                    </div>

                    <?php if($employee->wage_type === 'salary'): ?>
                    <div class="row mt-3">
                        <div class="col-md-12">
                            <h6>Salary Information</h6>
                            <div class="row">
                                <div class="col-md-4">
                                    <strong>Basic Salary:</strong> <?php echo e(number_format($employee->basic_salary, 2)); ?>

                                </div>
                                <div class="col-md-4">
                                    <strong>Working Hours:</strong> <?php echo e($employee->working_hours); ?> hours
                                </div>
                                <div class="col-md-4">
                                    <strong>Holidays Per Week:</strong> <?php echo e($employee->holidays_per_week); ?> days
                                </div>
                            </div>
                        </div>
                    </div>
                    <?php elseif($employee->wage_type === 'daily_wager'): ?>
                    <div class="row mt-3">
                        <div class="col-md-12">
                            <h6>Daily Wage Information</h6>
                            <div class="row">
                                <div class="col-md-4">
                                    <strong>Daily Wage:</strong> <?php echo e(number_format($employee->daily_wage, 2)); ?>

                                </div>
                            </div>
                        </div>
                    </div>
                    <?php elseif($employee->wage_type === 'contract'): ?>
                    <div class="row mt-3">
                        <div class="col-md-12">
                            <h6>Contract Information</h6>
                            <div class="row">
                                <div class="col-md-4">
                                    <strong>Contract Amount:</strong> <?php echo e(number_format($employee->contract_amount, 2)); ?>

                                </div>
                            </div>
                        </div>
                    </div>
                    <?php endif; ?>
                </div>
            </div>
        </div>
    </div>
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\laragon\www\habibcables-ERP\resources\views/employees/show.blade.php ENDPATH**/ ?>