@extends('layouts.admin') @section('heading', $staff->name . ' — Salary') @section('subheading', 'Set pay structure and record payments.') @section('actions') ← Back to salary list @endsection @section('content') @if (session('status'))
{{ session('status') }}
@endif @if ($errors->any())
{{ $errors->first() }}
@endif

Pay structure

@csrf @method('PUT')

Record a payment

Total paid: ₹{{ number_format($totalPaid, 0) }}

@csrf
@forelse($payments as $payment) @empty @endforelse
Date Notes Amount Actions
{{ $payment->paid_on->format('d M Y') }} {{ $payment->notes ?? '—' }} ₹{{ number_format($payment->amount, 0) }}
@csrf @method('DELETE')
No payments recorded yet.
@endsection