@extends('backEnd.layouts.master') @section('title', 'Salary Details') @section('css') @endsection @section('content')
{{-- TOP ACTION BAR --}}
Back to List @if($salary->status == 'calculated') Process Payment @endif
{{-- PAYSLIP CARD --}}
{{-- Header --}}

Salary Slip

Month: {{ \Carbon\Carbon::parse($salary->salary_month)->format('F Y') }}
{{ ucfirst($salary->status) }}
{{-- Employee Info --}}
Employee Name
{{ $salary->employee->name }}
Employee ID
{{ $salary->employee->employee_id }}
Department
{{ $salary->employee->department ?? 'N/A' }}
Designation
{{ $salary->employee->designation ?? 'N/A' }}
Working Days
{{ $salary->working_days }} Days
Attendance
P: {{ $salary->present_days }} | A: {{ $salary->absent_days }}
{{-- Breakdown --}}
Earnings
Basic Salary ৳{{ number_format($salary->basic_salary, 2) }}
Allowances ৳{{ number_format($salary->allowance, 2) }}
Bonus ৳{{ number_format($salary->bonus, 2) }}
Overtime ৳{{ number_format($salary->overtime, 2) }}
Gross Salary ৳{{ number_format($salary->gross_salary, 2) }}
Deductions
Absent Penalty Coming Soon
Other Deductions -৳{{ number_format($salary->deduction, 2) }}
Total Deduction -৳{{ number_format($salary->deduction, 2) }}
{{-- Net Pay Footer --}}
Net Payable Salary
*Final amount to be paid to employee
৳{{ number_format($salary->net_salary, 2) }}
{{-- Notes (If Any) --}} @if($salary->notes)
Additional Notes

{{ $salary->notes }}

@endif
@endsection