@extends('layouts.app') @section('title', 'Perk Policy') @section('content')

Perk Policy

@csrf @if( Route::currentRouteName() == 'perk-policy-edit' ) @endif
@if( Route::currentRouteName() == 'perk-policy-edit' ) @else @endif @error('name') {{ $message }} @enderror
@error('gender') {{ $message }} @enderror
@error('marital_status') {{ $message }} @enderror
@if( Route::currentRouteName() == 'perk-policy-edit' ) support_document ? 'checked' : '' }} /> @else @endif
@if( Route::currentRouteName() == 'perk-policy-edit' ) annual_renew ? 'checked' : '' }} /> @else @endif
@if( Route::currentRouteName() == 'perk-policy-edit' ) allow_application ? 'checked' : '' }} /> @else @endif
{{ __('Perk Entitlement') }}
@if( Route::currentRouteName() == 'perk-policy-edit' ) @php $all_entitlements = old('employee_score') ? old('employee_score') : $all_entitlements; @endphp @foreach ($all_entitlements as $index => $single_entitlement) @if( $index > 0 ) @endif @endforeach @else @if (old('employee_score') && old('service_month') && old('entitlement_amount')) @foreach (old('employee_score') as $key => $employee_score) @endforeach @else @endif @endif
# Employee Score Service Month (min) Entitlement Amount (RM) Action
1 @if( $all_entitlements->first() ) @else @endif @if( $all_entitlements->first() ) @else @endif @if( $all_entitlements->first() ) @else @endif
{{ $index + 1 }}
{{ ($key + 1) }}
1
Back
@endsection @push('js') @endpush