@extends('layouts.master') @section('content')
{{ $title }}
@if(auth()->user()->roles->first()->permissions->contains('name', 'Update salary scale notches')) @endif
@if(isset($error) || session('error'))
{{ $error ?? session('error') }}
@endif @if(session('success'))
{{ session('success') }}
@endif
@php $c = 1; $notchIds = collect($data['response']['data'])->pluck('salaryScaleNotches.*.id')->flatten(); $pamNotches = App\Models\PamEmpSalaryScaleNotch::whereIn('id', $notchIds)->get()->keyBy('id'); @endphp @foreach($data['response']['data'] as $item) @foreach($item['salaryScaleNotches'] as $notch) @php $pam_notch = $pamNotches->get($notch['id']); @endphp @endforeach @endforeach
# Salary Scale Code Staff Category Notch Name Notch Order Basic Pay HR Basic Pay Payroll Date created Date updated
{{ $c++ }} {{ $item['code'] ?? 'N/A' }} {{ $item['staffCategory']['name'] ?? 'N/A' }} {{ $notch['name'] ?? 'N/A' }} {{ $notch['notch_order'] ?? 'N/A' }} {{ $notch['basic_pay'] ?? 'N/A' }} {{ $pam_notch->basic_pay ?? 'N/A' }} {{ $notch['created_at'] ?? 'N/A' }} {{ $notch['updated_at'] ?? 'N/A' }}
@endsection @section('modal') @endsection