@extends('layouts.master') @section('content')
{{ $title }}
A list of earnings linked to a payroll.
@if(isset($error) || session('error'))
{{ $error ?? session('error') }}
@endif
@canany('Manage payroll earning definitions') @endcanany
{{ $title }}
@foreach($data as $item) @endforeach
Code Name Mode of Calculation % Fixed Amount Action
{{$item->earn_def_id? $item->pamEarnDef->code : '' }} {{ $item->short_description }} {{$item->mode_of_calculation }} {{$item->percentage }} {{$item->fixed_amount }} @canany(['View payroll earning definitions','Manage payroll earning definitions']) @endcanany @if($item->pamEarnDef->pamEarnType->code !== 'BASIC') @canany(['Manage payroll earning definitions']) @endcanany @endif
@endsection @section('modal') @foreach ($data as $key => $item) @endforeach @endsection