@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 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 Salary Sheet @csrf Pay Date: Note: SL Emp.ID Entry Date Month & Year 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 $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; $basic = $emp->basic; $days = $emp->days; $absent = $emp->absent; $workdays = $emp->workdays; $hr = $emp->hr; $rt = $emp->rt; $total_overtime = $emp->total_overtime; $abs_deda_amt = $emp->abs_deda_amt; $allownce = $emp->allownce; $payable_net_salary = $emp->payable_net_salary; $loan_given = $emp->loan_given; $loan_adj = $emp->loan_adj; $stamp_deduc = $emp->stamp_deduc; $payable_net_amt = $emp->payable_net_amt; $signature = $emp->signature; $comments = $emp->comments; $paid_date = $emp->paid_date; $medical = $emp->medical; $travelAllowance = $emp->travelAllowance; $foodAllowance = $emp->foodAllowance; $basic = $emp->basic; $houseRent = $emp->houseRent; $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) }} {{ $gross_salary }} {{ $basic }} {{ $houseRent }} {{ $medical }} {{ $travelAllowance }} {{ $foodAllowance }} {{$comments}} X Print @endforeach @endif Update @endsection @push('scripts') @if(isset($month) && !empty($month) && isset($year) && !empty($year) ) @endif @endpush