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

Leave Policy

@csrf @if( Route::currentRouteName() == 'leave-policy-edit' ) @endif
{{ __('Leave Policy') }}
@if( Route::currentRouteName() == 'leave-policy-edit' ) @else @endif @error('name') {{ $message }} @enderror
@error('gender') {{ $message }} @enderror
@error('marital_status') {{ $message }} @enderror
@error('employment_type') {{ $message }} @enderror
@error('half_day_request') {{ $message }} @enderror
@error('earn_leave_policy') {{ $message }} @enderror
@error('carry_forward_duration') {{ $message }} @enderror
@if( Route::currentRouteName() == 'leave-policy-edit' ) show_in_calendar ? 'checked' : '' }} /> @else @endif
@if( Route::currentRouteName() == 'leave-policy-edit' ) cancellation_after_approved ? 'checked' : '' }} /> @else @endif
@if( Route::currentRouteName() == 'leave-policy-edit' ) allow_application ? 'checked' : '' }} /> @else @endif
@if( Route::currentRouteName() == 'leave-policy-edit' ) support_document ? 'checked' : '' }} /> @else @endif
@if( Route::currentRouteName() == 'leave-policy-edit' ) include_holiday ? 'checked' : '' }} /> @else @endif
@if( Route::currentRouteName() == 'leave-policy-edit' ) annual_renew ? 'checked' : '' }} /> @else @endif
{{ __('Leave Notice Policy') }}
@if( Route::currentRouteName() == 'leave-policy-edit' ) @php $all_notices = old('application_duration') ? old('application_duration') : $all_notices; @endphp @foreach ($all_notices as $index => $single_notice) @if($index > 0) @endif @endforeach @else @if (old('application_duration') && old('notice_period')) @foreach (old('application_duration') as $key => $application_duration) @endforeach @else @endif @endif
# Application Day Notice Period Action
1 @if( $all_notices->first() ) @else @endif @if( $all_notices->first() ) @else @endif
{{ $index + 1 }}
{{ ($key + 1) }}
1
{{ __('Leave Entitlement') }}
@if( Route::currentRouteName() == 'leave-policy-edit' ) @php $all_entitlements = old('service_month') ? old('service_month') : $all_entitlements; @endphp @foreach ($all_entitlements as $index => $single_entitlement) @if($index > 0) @endif @endforeach @else @if (old('service_month') && old('entitlement') && old('carry_forward')) @foreach (old('service_month') as $key => $service_month) @endforeach @else @endif @endif
# Service Month (min) Entitlement Carry Forward 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