@extends('layouts.app') @section('breadcrumb') @stop @section('content')

{!! trans('messages.add_new') !!} {!! trans('messages.holiday') !!}

{!! Form::open(['route' => 'holiday.store','role' => 'form', 'class'=>'holiday-form','id' => 'holiday-form']) !!} @include('holiday._form') {!! Form::close() !!}

{!! trans('messages.bulk').' '.trans('messages.upload') !!} {!! trans('messages.holiday') !!}

Get ICS file from MOM (Ministry of Manpower)

{!! Form::open(['url' => url('holiday/uploadHolidays'), 'files' => 'true', 'class' => 'form-inline upload-attendance-form', 'id' => 'upload-holiday-form', 'data-submit' => 'noAjax']) !!} {!! Form::submit(trans('messages.upload'), ['id' => 'm-submit', 'class' => 'btn btn-primary btn-sm', 'onclick' => "this.form.submit();"]) !!} {!! Form::close() !!}

{!! trans('messages.filter') !!} {!! trans('messages.holiday') !!}

{!! Form::open(['url' => 'filter','id' => 'holiday-filter-form','data-no-form-clear' => 1]) !!}
{!! Form::label('month',trans('messages.month'),[])!!} {!! Form::select('month[]',$months,'',['class'=>'form-control show-tick','title' => trans('messages.select_one'),'multiple' => 'multiple','data-actions-box' => "true"])!!}
{!! Form::label('year',trans('messages.year'),[])!!} {!! Form::select('year',$years,date('Y'),['class'=>'form-control show-tick','title' => trans('messages.select_one')])!!}
{!! Form::close() !!}

{!! trans('messages.list_all') !!} {!! trans('messages.holiday') !!}

@include('global.datatable',['table' => $table_data['holiday-table']])
@stop