@extends('layouts.app') @section('content') {{-- ── Page Header ── --}}

Payroll Policy

Your salary structure and bonus rules

@if ($policy) Edit Policy @else Setup Policy @endif
@if ($policy) {{-- ── Salary Cards ── --}}

Base Salary

{{ number_format($policy->base_salary) }}

PKR / month

No Leave Bonus

+{{ number_format($policy->no_leave_bonus) }}

if 0 leave days

Punctuality Bonus

+{{ number_format($policy->punctuality_bonus) }}

if 0 late days

{{-- ── Max Salary Summary ── --}}

Maximum Possible Salary

{{ number_format($policy->max_salary) }} PKR

{{ number_format($policy->base_salary) }} base

+ {{ number_format($policy->no_leave_bonus) }} no leave bonus

+ {{ number_format($policy->punctuality_bonus) }} punctuality bonus

{{-- ── Bonus Rules ── --}}

Bonus Rules

No Leave Bonus

Zero leave days in the month

+{{ number_format($policy->no_leave_bonus) }} PKR

Punctuality Bonus

Zero late check-ins in the month

+{{ number_format($policy->punctuality_bonus) }} PKR
{{-- ── Deduction Rules ── --}}

Deduction Rules

{{-- Leave Deduction --}}

Leave Deduction

1 day = {{ number_format($policy->per_day_value) }} PKR (base ÷ 30)

@if ($policy->enable_leave_deduction) Enabled @else Disabled @endif
{{-- Sandwich Rule --}}

Sandwich Rule

Weekend between Fri & Mon leaves counted as leave

@if ($policy->enable_sandwich_rule) Enabled @else Disabled @endif
@else {{-- ── Empty State ── --}}

No policy configured

Set up your payroll policy to start generating payslips.

Setup Policy
@endif @endsection