@extends('layouts.app') @section('title', 'Leave Types') @section('breadcrumbs') @endsection @section('content')
{{-- Header --}}

Leave Types

Configure global leave type templates for all companies

Add Leave Type
{{-- Search --}}
@if(request('search')) Clear @endif
{{-- Table --}}
@if($leaveTypes->isEmpty())
No leave types configured
Create your first leave type template to get started.
Add Leave Type
@else
@foreach($leaveTypes as $type) @endforeach
Color Name Code Days/Year Paid Carry Forward Requires Doc Status Actions
{{ $type->name }} {{ $type->code }} {{ $type->days_per_year }} @if($type->is_paid) Paid @else Unpaid @endif @if($type->is_carry_forward) Yes (max {{ $type->max_carry_forward_days }}d) @else No @endif @if($type->requires_document) After {{ $type->document_required_after_days }}d @else No @endif @if($type->is_active) Active @else Inactive @endif
@csrf @method('DELETE')
@if($leaveTypes->hasPages())
{{ $leaveTypes->links() }}
@endif @endif
@endsection