@extends('layouts.app', ['class' => 'g-sidenav-show bg-gray-100']) @section('content') @include('layouts.navbars.auth.topnav', ['title' => $title])
@csrf
Leave Application
Save
Cancel
Name of Staff
Select Staff
@if($staff instanceof \Illuminate\Database\Eloquent\Collection) @foreach($staff as $staffMember)
cms_staff_id ?? '') == $staffMember->cms_staff_id ? 'selected' : '' }}> {{ $staffMember->firstname }}
@endforeach @else
cms_staff_id ?? $staff->cms_staff_id) == $staff->cms_staff_id ? 'selected' : '' }}> {{ $staff->firstname }}
@endif
Leave Type
Select Leave Type
@foreach($leave_type as $data)
{{ $data->leave_name }}
@endforeach
Allocated Leave
Balance Leave
Day Type
Select Day Type
Whole Day
Half Day
@if(auth()->check() && auth()->user()->username === 'admin')
Leave Status
Approved
Rejected
@endif
Start Date
End Date
Days
Reason
@include('layouts.footers.auth.footer')
@endsection @push('scripts') @endpush