@extends('layouts.app') @section('title', 'Employee Salaries') @section('breadcrumbs') @endsection @section('content')
{{-- Header --}}

Employee Salaries

Manage salary structures for all employees

Bulk Revision
{{-- Search --}}
@if(request('search')) Clear @endif
{{-- Employees Table --}}
@forelse($employees as $emp) @php $currentSalaries = $emp->employeeSalaries->where('effective_to', null); $basic = $currentSalaries->firstWhere('salaryComponent.code', 'BASIC'); $total = $currentSalaries->sum('amount'); @endphp @empty @endforelse
Employee Department Designation Basic (OMR) Total (OMR) Status Actions
{{ strtoupper(substr($emp->first_name, 0, 1)) }}
{{ $emp->full_name }}
{{ $emp->employee_code }}
{{ $emp->department->name ?? '—' }} {{ $emp->designation->name ?? '—' }} {{ $basic ? number_format($basic->amount, 3) : '—' }} {{ $total > 0 ? number_format($total, 3) : '—' }} @if($total > 0) Assigned @else Not Assigned @endif
@if($total > 0) @endif

No employees found

Add employees in the HR module first.

@if($employees->hasPages())
{{ $employees->links() }}
@endif
@endsection