@csrf @php $izinId = optional(collect($leave_types)->firstWhere('name', 'Izin'))->id ?? 2; @endphp