<?php $__env->startSection('content'); ?>
<div class="card">
    <div class="card-header">
        <h4 class="card-title"><?php echo e($reportTitle); ?> - Report</h4>
    </div>
    <div class="card-body">
        <form action="<?php echo e(route('hr.reports.' . $reportName . '.post')); ?>" method="POST" target="_blank">
            <?php echo csrf_field(); ?>
            <input type="hidden" name="report_name" value="<?php echo e($reportName); ?>">
            
            <div class="mb-3">
                <label for="branch_id" class="form-label">Branch</label>
                <select class="form-select" id="branch_id" name="branch_id">
                    <option value="">All Branches</option>
                    <?php $__currentLoopData = $branches; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $branch): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <option value="<?php echo e($branch->id); ?>"><?php echo e($branch->name); ?></option>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </select>
            </div>

            <div class="mb-3">
                <label for="department_id" class="form-label">Department</label>
                <select class="form-select" id="department_id" name="department_id">
                    <option value="">All Departments</option>
                    <?php $__currentLoopData = $departments; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $department): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <option value="<?php echo e($department->id); ?>"><?php echo e($department->name); ?></option>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </select>
            </div>

            <div class="mb-3">
                <label for="payroll_group" class="form-label">Payroll Group</label>
                <select class="form-select" id="payroll_group" name="payroll_group">
                    <option value="">All Group</option>
                    <?php $__currentLoopData = $payrollGroup; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $group): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <option value="<?php echo e($group->id); ?>"><?php echo e($group->name); ?></option>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </select>
            </div>
            
            <div class="mb-3">
                <div class="border rounded p-2">
                    <div>
                        <input type="hidden" name="currently_working" value="0">
                        <input type="checkbox" id="afterWorking" name="currently_working" value="1" checked>
                        <label>Currently Working</label>
                    </div>
                    <div>
                        <input type="hidden" name="attendance" value="0">
                        <input type="checkbox" name="attendance"
                            id="afterAttendance" value="1" checked>
                        <label>Attendance</label>
                    </div>
                    <div>
                        <input type="hidden" name="payroll" value="0">
                        <input type="checkbox" name="payroll" value="1" checked
                            id="afterPayroll">
                        <label>Payroll</label>
                    </div>
                </div>
            </div>
            <div class="mb-3">
                <label for="format" class="form-label">Output Format</label>
                <select class="form-select" id="format" name="format" required>
                    <option value="pdf">PDF</option>
                    <option value="excel">Excel</option>
                    <option value="csv">CSV</option>
                    <option value="dat">DAT</option>
                </select>
            </div>

            <button type="submit" class="btn btn-primary">Preview / Download</button>
        </form>
    </div>
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /home/codeproh/hr.vadistilleries.lk/app/Modules/HR/Reports/Providers/../Views/masters/employee-details.blade.php ENDPATH**/ ?>