@extends('layouts.app') @section('content')

{{ $title }}

Cancel
@csrf @if($record) @method('PUT') @endif
{{ $record?->user?->name ?? auth()->user()->name }}
Type of absence
@foreach($types as $type) @if($type->code === 'other') @php($otherSelected = (string) old('pto_request_type_id', $record?->pto_request_type_id) === (string) $type->id)
@else @endif @endforeach
@foreach($record?->documents ?? [] as $document)@endforeach
@endsection