@extends('layouts.admin') @section('page-title') {{__('Manage Holiday')}} @endsection @section('breadcrumb') @endsection @section('action-btn') @can('create holiday')
{{-- --}}
@endcan @endsection @section('content') @can('create holiday')
{{ Form::open(array('route' => array('holiday.calender'),'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']:'',array('class'=>'month-btn form-control'))}}
{{Form::label('end_date',__('End Date'),['class'=>'form-label'])}} {{Form::date('end_date',isset($_GET['end_date'])?$_GET['end_date']:'',array('class'=>'month-btn form-control '))}}
{{ Form::close() }}
@endcan
@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->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]) !!} {!! Form::close() !!}
@endcan
@endsection