@extends('hr_main') @section('title', '| Org/Branch/Samity Holiday Setup') @section('content')
New Holiday Configuration
{!! Form::open(['url' => '', 'role' => 'form', 'class' => 'form-horizontal form-groups']) !!}
{!! Form::label('applicableFor', 'Applicable For:', ['class' => 'col-sm-2 control-label']) !!}
{!! Form::radio('applicableFor', 'org', true) !!} {!! Form::label('organization', 'Organization', ['class' => 'control-label']) !!}     {!! Form::radio('applicableFor', 'branch', false) !!} {!! Form::label('branch', 'Branch', ['class' => 'control-label']) !!}     {!! Form::radio('applicableFor', 'samity', false) !!} {!! Form::label('samity', 'Samity', ['class' => 'control-label']) !!}
@php $branches = DB::table('gnr_branch') ->select('name', 'id', 'branchCode') ->orderBy('branchCode') ->get(); @endphp
{!! Form::label('branch', 'Branch:', ['class' => 'col-sm-2 control-label']) !!}
@php $samities = DB::table('mfn_samity') ->where('status', '1') ->select('name', 'id', 'code') ->orderBy('code') ->get(); @endphp
{!! Form::label('samity', 'Samity:', ['class' => 'col-sm-2 control-label']) !!}
{!! Form::label('holidayDateFrom', 'Holiday Date From:', ['class' => 'col-sm-2 control-label']) !!}
{!! Form::text('dateFrom', null, [ 'id' => 'dateFrom', 'class' => 'form-control', 'style' => 'cursor:pointer;', 'readonly', ]) !!}
{!! Form::label('holidayDateTo', 'Holiday Date To:', ['class' => 'col-sm-2 control-label']) !!}
{!! Form::text('dateTo', null, [ 'id' => 'dateTo', 'class' => 'form-control', 'readonly', 'style' => 'cursor:pointer;', ]) !!}
@php $holidayTypes = ['' => 'Select', 'Holiday' => 'Holiday', 'Others' => 'Others']; @endphp
{!! Form::label('holidayType', 'Holiday Type:', ['class' => 'col-sm-2 control-label']) !!}
{!! Form::select('holidayType', $holidayTypes, null, ['class' => 'form-control']) !!}
{!! Form::label('description', 'Description:', ['class' => 'col-sm-2 control-label']) !!}
{!! Form::textArea('description', null, ['class' => 'form-control', 'rows' => 2]) !!}
{!! Form::close() !!}
{{-- --}} @endsection