@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 Bonus 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 Bonus Year: @php $startYear = 2023; // Change to your desired start year $endYear = date('Y'); // Current year @endphp @for ($yer = $endYear; $yer >= $startYear; $yer--) {{ $yer }} @endfor Generate Refresh Create Bonus Bonus List @csrf Pay Date: Note: SL Emp.ID 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 $where = []; $where[] = ['ocbonus.emp_id','=',$emp->id]; $where[] = ['ocbonus.salary_month', '=', $month]; $where[] = ['ocbonus.salary_year', '=', $year]; $check = Helper::findData('ocbonus', $where); if ($check) { continue; } $gross_salary = $emp->salary; $bonus_per = ''; $payable_net_amt = 0; @endphp {{ $sl++ }} {{ $emp->emp_id }} {{ $emp->emp_name }} {{ $emp->department_name }} {{ $emp->designation }} {{ $emp->phone }} {{ Helper::dateFormate($emp->joining_date) }} Select Bonus Eid Ul Fitr Eid Ul Adha {{ $gross_salary }} X @endforeach @endif Submit @endsection @push('scripts') @if(isset($month) && !empty($month) && isset($year) && !empty($year) ) @endif @endpush