@extends('layouts.main') @section('page-title') {{ __('Manage Holiday') }} @endsection @section('page-breadcrumb') {{ __('Holiday') }} @endsection @section('page-action')
@can('holiday import') @endcan @can('holiday create') @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' => 'form-control ','placeholder'=>"Select Date"]) }}
{{ Form::label('end_date', __('End Date'), ['class' => 'form-label']) }} {{ Form::date('end_date',isset($_GET['end_date']) ? $_GET['end_date'] : '', ['class' => 'form-control ','placeholder'=>"Select Date"]) }}
{{ Form::close() }}
@if (Gate::check('holiday edit') || Gate::check('holiday delete')) @endif @foreach ($holidays as $holiday) @if (Gate::check('holiday edit') || Gate::check('holiday delete')) @endif @endforeach
{{ __('Occasion') }} {{ __('Start Date') }} {{ __('End Date') }}{{ __('Action') }}
{{ $holiday->occasion }} {{ company_date_formate($holiday->start_date) }} {{ company_date_formate($holiday->end_date) }} @can('holiday edit') @endcan @can('holiday delete')
{{Form::open(array('route'=>array('holiday.destroy', $holiday->id),'class' => 'm-0'))}} @method('DELETE') {{Form::close()}}
@endcan
@endsection