JFIFxxC      C  " }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr@extends('layouts.admin') @section('page-title') {{ __('Manage Holiday') }} @endsection @section('breadcrumb') @endsection @section('action-button') @if (\Auth::user()->type != 'employee') @endif @can('Create Holiday') @endcan @endsection @section('content')
{{ Form::open(['route' => ['holiday.index'], 'method' => 'get', 'id' => 'holiday_filter']) }}
{{ Form::label('start_date', __('Start Date'), ['class' => 'form-label']) }} {{ Form::date('start_date', isset($_GET['start_date']) ? $_GET['start_date'] : '', ['class' => 'month-btn form-control current_date', 'autocomplete' => 'off']) }}
{{ Form::label('end_date', __('End Date'), ['class' => 'form-label']) }} {{ Form::date('end_date', isset($_GET['end_date']) ? $_GET['end_date'] : '', ['class' => 'month-btn form-control current_date', 'autocomplete' => 'off']) }}
{{ Form::close() }}
{{--
--}}
@if (Gate::check('Edit Holiday') || Gate::check('Delete Holiday')) @endif @foreach ($holidays as $holiday) @if (Gate::check('Edit Holiday') || Gate::check('Delete Holiday')) @endif @endforeach
{{ __('Occasion') }} {{ __('Start Date') }} {{ __('End Date') }}{{ __('Action') }}
{{ $holiday->occasion }} {{ \Auth::user()->dateFormat($holiday->start_date) }} {{ \Auth::user()->dateFormat($holiday->end_date) }} @can('Edit Holiday') @endcan @can('Delete Holiday')
{!! Form::open([ 'method' => 'DELETE', 'route' => ['holiday.destroy', $holiday->id], 'id' => 'delete-form-' . $holiday->id, ]) !!}
@endcan
@endsection @push('script-page') @endpush