@extends('admin.layouts.layout') @section('title', 'Services & Pay - ' . $employee->full_name) @section('content')

Service Pay Settings

Back to Employees
@if($permission['create'] ?? true) Add @endif @if($permission['destroy'] ?? true) @endif
@if(isset($data) && count($data) > 0) @foreach($data as $setting) @endforeach @else @endif
Service Pay Type Per Inspection Inspection From Status Actions
@php $serviceName = $setting->service->service_name ?? 'N/A'; $initials = strtoupper(substr($serviceName, 0, 2)); @endphp
{{ $initials }}
{{ $serviceName }}
@if($setting->pay_type == 'fixed') Fixed Payout @elseif($setting->pay_type == 'hourly') Hourly @elseif($setting->pay_type == 'percentage') Percentage @else {{ ucfirst($setting->pay_type) }} @endif @if(!is_null($setting->amount_per_inspection)) @if($setting->pay_type == 'percentage') {{ number_format($setting->amount_per_inspection, 1) }}% @else ${{ number_format($setting->amount_per_inspection, 2) }} @endif @else N/A @endif @if($setting->inspection_from == 'company') Via Company @else Via Personal @endif @if($setting->is_active) Active @else Inactive @endif
@if($permission['edit'] ?? true) @endif @if($permission['destroy'] ?? true) {!! html()->form('DELETE', route($routePrefix . '.destroy', $setting->id))->attributes([ 'style' => 'display:inline', 'id' => 'delete-form-' . $setting->id ])->open() !!} {!! html()->form()->close() !!} @endif
No service & pay settings found for this employee.
@if($permission['create'] ?? true) Add First Service & Pay Setting @endif
@include('admin.components.pagination')
@endsection @push('page_script') @endpush @push('page_script') @endpush