@extends('layouts.admin') @push('styles') @endpush @section('content') 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 Salary 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 Salary 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 Salary Salary List @csrf Pay Date: Note: SL Emp.ID Emp.Name Department Designation Mobile No Joining Date Gross Salary Basic House Rent Medical Travel Allowance Food Allowance Work Day Overtime Absent (Deda. Amt.) Allownce Payable Net Salary Loan given Loan Adj. Stamp Deduc Payable Net Amount Signature Comments Paid Date Action Days Absent Total Hr Rt Total @if ( count($empList) > 0 ) @php $sl = 1; @endphp @foreach ($empList as $key => $emp) @php $where = []; $where[] = ['salaries.emp_id','=',$emp->id]; $where[] = ['salaries.salary_month', '=', $month]; $where[] = ['salaries.salary_year', '=', $year]; $check = Helper::findData('salaries', $where); if ($check) { continue; } $gross_salary = $emp->salary; if(isset($month) && isset($year) && !empty($month) && !empty($year)){ $uinc = Helper::updateIncrement($month,$year,$emp->id); if($uinc){ $current_salary = $uinc->current_salary; $inc_salary = $uinc->inc_salary; $gross_salary = $emp->salary + $inc_salary; } } $medical = 600; $travelAllowance = 350; $foodAllowance = 900; $basic = ($gross_salary - $medical - $travelAllowance - $foodAllowance) / 1.5; $basic = round($basic); $houseRent = $basic * 0.5; $houseRent = round($houseRent); $workDay = 30; $absent = 0; $total_overtime = 0; $hr = 0; $rt = 0; $abs_deda_amt = ($gross_salary / 30) * $absent; $allownce = 0; $payable_net_salary = $gross_salary + $total_overtime - $abs_deda_amt + $allownce; $loan_given = 0; $loan_adj = 0; $stamp_deduc = 0; $payable_net_amount = 0; $signature = ''; $payable_net_amt = $payable_net_salary + $loan_given - $loan_adj - $stamp_deduc; @endphp {{ $sl++ }} {{ $emp->emp_id }} {{ $emp->emp_name }} {{ $emp->department_name }} {{ $emp->designation }} {{ $emp->phone }} {{ Helper::dateFormate($emp->joining_date) }} {{ $gross_salary }} {{ $basic }} {{ $houseRent }} {{ $medical }} {{ $travelAllowance }} {{ $foodAllowance }} X @endforeach @endif Submit @endsection @push('scripts') @if(isset($month) && !empty($month) && isset($year) && !empty($year) ) @endif @endpush