@extends('layouts.admin') @push('styles') @endpush @section('content') Oc. Bonus Type Select Bonus Eid Ul Fitr Eid Ul Adha Encourage Bonus Department Select Department @foreach ($departments as $v) id) ? 'selected' : '' }}> {{ $v->department_name }} @endforeach Designation Select Designation @foreach ($designations as $v) id) ? 'selected' : '' }}> {{ $v->designation }} @endforeach Employee Select Employee @foreach ($employees as $v) id ? 'selected' : '' }}> {{ $v->emp_name }} @endforeach Month: @php $monthNames = [ ["short" => "", "full" => "Select Month"], ["short" => "01", "full" => "January"], ["short" => "02", "full" => "February"], ["short" => "03", "full" => "March"], ["short" => "04", "full" => "April"], ["short" => "05", "full" => "May"], ["short" => "06", "full" => "June"], ["short" => "07", "full" => "July"], ["short" => "08", "full" => "August"], ["short" => "09", "full" => "September"], ["short" => "10", "full" => "October"], ["short" => "11", "full" => "November"], ["short" => "12", "full" => "December"], ]; @endphp @foreach ($monthNames as $mon) {{ $mon['full'] }} @endforeach Year: @php $startYear = 2023; // Change to your desired start year $endYear = date('Y'); // Current year @endphp @for ($yer = $endYear; $yer >= $startYear; $yer--) {{ $yer }} @endfor Search Refresh Bonus Sheet @csrf Pay Date: Note: SL Emp.ID Entry Date Month & Year Emp.Name Department Designation Mobile No Joining Date BonusType Gross Salary Bonus(%) Bonus Amount Paid Date Action @if ( count($empList) > 0 ) @php $sl = 1; @endphp @foreach ($empList as $key => $emp) @php $dpt_id = $emp->dpt_id; $designation_id = $emp->designation_id; $entrydate = $emp->entrydate; $salary_month = $emp->salary_month; $salary_year = $emp->salary_year; $pay_date = $emp->pay_date; $note = $emp->note; $emp_id = $emp->emp_id; $gross_salary = $emp->gross_salary; $bonus_per = $emp->bonus_per; $paid_date = Helper::dateFormate($emp->paid_date); $payable_net_salary = $emp->payable_net_salary; $payable_net_amt = $emp->payable_net_amt; $dateTime = DateTime::createFromFormat('!m', $emp->salary_month); $mont = $dateTime->format('F') @endphp {{ $sl++ }} {{ $emp->empID }} {{ Helper::dateFormate($emp->entrydate) }} {{ $mont }}, {{ $emp->salary_year }} {{ $emp->emp_name }} {{ $emp->department_name }} {{ $emp->designation }} {{ $emp->phone }} {{ Helper::dateFormate($emp->joining_date) }} Select Bonus bonus_id) && ($emp->bonus_id == 1) ? 'selected' : '' }}> Eid Ul Fitr bonus_id) && ($emp->bonus_id == 2) ? 'selected' : '' }}> Eid Ul Adha {{ $gross_salary }} X Print @endforeach @endif Update @endsection @push('scripts') @if(isset($month) && !empty($month) && isset($year) && !empty($year) ) @endif @endpush