@extends('admin.layouts.master') @section('title') @if(!$edit_mode) New Season @else Edit Season: {{ $business_calendar->start_date->timezone(\Setting::get('app.view_timezone'))->format('Y/m/d') }} to {{ $business_calendar->end_date->timezone(\Setting::get('app.view_timezone'))->format('Y/m/d') }} @endif @stop @section('content')
@if(!$edit_mode) New Season @else Edit Season: {{ $business_calendar->start_date->timezone(\Setting::get('app.view_timezone'))->format('Y/m/d') }} to {{ $business_calendar->end_date->timezone(\Setting::get('app.view_timezone'))->format('Y/m/d') }} @endif
{{ Form::open(array('url' => 'admin/settings/business-calendar/save','class'=>'form-horizontal','files' => true)) }} {{ Form::hidden('edit_mode', $edit_mode) }} @if($edit_mode) {{ Form::hidden('business_calendar_id', $business_calendar->id) }} @endif
{{ Form::label('season_name') }}
{{ Form::select('season_name', array('low' => 'Low Season', 'normal' => 'Normal Season', 'high' => 'High Season'), $edit_mode ? $business_calendar->season_name : Input::get('season_name'), array('class' => 'form-control')) }}
{{ Form::label('start_date') }}
{{ Form::text('start_date', $edit_mode ? $business_calendar->start_date->timezone(\Setting::get('app.view_timezone'))->format('Y/m/d') : Input::get('start_date'), array('class' => 'form-control', 'data-provide' => 'datepicker', 'data-date-format' => 'yyyy-mm-dd')) }}
{{ Form::label('end_date') }}
{{ Form::text('end_date', $edit_mode ? $business_calendar->end_date->timezone(\Setting::get('app.view_timezone'))->format('Y/m/d') : Input::get('end_date'), array('class' => 'form-control', 'data-provide' => 'datepicker', 'data-date-format' => 'yyyy-mm-dd')) }}
{{ Form::label('comment') }}
{{ Form::text('comment', $edit_mode ? $business_calendar->comment : Input::get('comment'), array('class' => 'form-control')) }}
Cancel {{ Form::button(' Save', array('type' => 'submit', 'class' => 'btn btn-lg green')) }}
{{ Form::close() }}
@stop