@extends('admin.master') @section('content') @if(isset($editModeData)) @section('title','Edit Work Shift') @else @section('title','Add Work Shift') @endif
@yield('title')
@if(isset($editModeData)) {{ Form::model($editModeData, array('route' => array('workShift.update', $editModeData->work_shift_id), 'method' => 'PUT','files' => 'true','id' => 'workShiftForm','class' => 'form-horizontal')) }} @else {{ Form::open(array('route' => 'workShift.store','enctype'=>'multipart/form-data','id'=>'workShiftForm','class' => 'form-horizontal')) }} @endif
@if($errors->any()) @endif @if(session()->has('success'))
 {{ session()->get('success') }}
@endif @if(session()->has('error'))
 {{ session()->get('error') }}
@endif
{!! Form::text('shift_name',Input::old('shift_name'), $attributes = array('class'=>'form-control required shift_name','id'=>'shift_name','placeholder'=>'Enter shift name')) !!}
{!! Form::text('start_time',(isset($editModeData)) ? date("h:i a", strtotime($editModeData->start_time)) : Input::old('start_time'), $attributes = array('class'=>'form-control timePicker','id'=>'timepicker','placeholder'=>'Enter start time')) !!}
{!! Form::text('end_time',(isset($editModeData)) ? date("h:i a", strtotime($editModeData->end_time)) : Input::old('start_time'), $attributes = array('class'=>'form-control timePicker','id'=>'timepicker','placeholder'=>'Enter end time')) !!}
{!! Form::text('late_count_time',(isset($editModeData)) ? date("h:i a", strtotime($editModeData->late_count_time)) : Input::old('start_time'), $attributes = array('class'=>'form-control timePicker','id'=>'late_count_time','placeholder'=>'Enter late count time')) !!}
@if(isset($editModeData)) @else @endif
{{ Form::close() }}
@endsection