@extends('admin.layouts.master') @section('title') @if(!$edit_mode) New Tour @else Edit Tour: {{ $tour->name }} @endif @stop @section('content')
@if(!$edit_mode) New Tour @else Edit Tour: {{ $tour->name }} @endif
{{ Form::open(array('url' => 'admin/tours/save','class'=>'form-horizontal form-row-stripped', 'id'=>'tour_form', 'files' => true)) }} {{ Form::hidden('edit_mode', $edit_mode) }} @if($edit_mode) {{ Form::hidden('tour_id', $tour->id) }} @endif
{{--
{{ Form::text('code', $edit_mode ? $tour->code : Input::get('code'), array('class' => 'form-control')) }} {{ Form::label('code', 'Code') }}
--}}
{{ Form::text('name', $edit_mode ? $tour->name : Input::get('name'), array('class' => 'form-control')) }} {{ Form::label('name', 'Name') }}
{{ Form::textarea('description', $edit_mode ? $tour->description : Input::get('description'), array('name'=>'description','id'=>'description','class' => 'form-control','placeholder'=>'Enter description', 'rows'=> '4')) }} {{ Form::label('description', 'Description') }}
{{ Form::textarea('highlights', $edit_mode ? $tour->highlights : Input::get('highlights'), array('class' => 'form-control', 'id' => 'highlights', 'rows'=> '2')) }} {{ Form::label('highlights', 'Highlights') }}
{{ Form::text('start_location', $edit_mode ? $tour->start_location : Input::get('start_location'), array('class' => 'form-control', 'id' => 'start_location')) }} {{ Form::label('start_location', 'Start Location') }}
{{ Form::text('finish_location', $edit_mode ? $tour->finish_location : Input::get('finish_location'), array('class' => 'form-control', 'id' => 'finish_location')) }} {{ Form::label('finish_location', 'Finish Location') }}
{{ Form::textarea('inclusions', $edit_mode ? $tour->inclusions : Input::get('inclusions'), array('class' => 'form-control', 'id' => 'inclusions', 'rows'=> '2')) }} {{ Form::label('inclusions', 'Inclusions') }} Tour inclusions
{{ Form::text('capacity', $edit_mode ? $tour->capacity : Input::get('capacity'), array('class' => 'form-control', 'id' => 'capacity')) }} {{ Form::label('capacity', 'Capacity') }} Tour capacity
{{ Form::text('minimum_reservation', $edit_mode ? $tour->minimum_reservation : Input::get('minimum_reservation'), array('class' => 'form-control', 'id' => 'minimum_reservation')) }} {{ Form::label('minimum_reservation', 'Minimum Reservation') }} Minimum number of reservation
{{ Form::text('price', $edit_mode ? $tour->price : Input::get('price'), array('class' => 'form-control', 'id' => 'price')) }} {{ Form::label('price', 'Default Price') }} {{ Setting::get('currency_symbol') }} per person
{{ Form::label('start_time', 'Start Time') }}
{{ Form::text('start_time', $edit_mode ? $tour->start_time : Input::get('start_time'), array('id' => 'start_time', 'class' => 'form-control', 'data-provide' => 'timepicker', 'data-time-format' => 'H:ii')) }}
{{ Form::label('end_time', 'End Time', ['style' => 'white-space: nowrap;overflow: hidden;text-overflow: ellipsis;']) }}
{{ Form::text('end_time', $edit_mode ? $tour->end_time : Input::get('end_time'), array('id' => 'end_time', 'class' => 'form-control', 'data-provide' => 'timepicker', 'data-time-format' => 'HH:ii')) }}
{{ Form::textarea('terms_and_conditions', $edit_mode ? $tour->terms_and_conditions : Input::get('terms_and_conditions'), array('class' => 'form-control', 'id' => 'summernote_1')) }} {{ Form::label('terms_and_conditions', 'Terms & Conditions') }}
{{ Form::textarea('confirmation_message', $edit_mode ? $tour->confirmation_message : Input::get('confirmation_message'), array('class' => 'form-control', 'id' => 'summernote_2', 'rows'=> '4')) }} {{ Form::label('confirmation_message', 'Confirmation Message') }}
{{ Form::label('occurance') }} {{ Form::select('occurance', array('everyday' => 'Everyday', 'weekends' => 'Weekends', 'work-days' => 'Work Days'), $edit_mode ? $tour->occurance : Input::get('occurance'), array('class'=>'bs-select form-control', 'id' => 'occurance', 'data-live-search'=>'false', 'data-size'=>'8')) }}
{{ Form::checkbox('allow_overbooking', 1, $edit_mode ? $tour->allow_overbooking : Input::get('allow_overbooking'), array('class'=>'md-check', 'id' => 'allow_overbooking')) }}

Tour Price Per Age Groups

@if(!$edit_mode) @foreach($age_groups as $age_group)
{{ Form::text('price_' . $age_group->id, Input::get('price_' . $age_group->id, 0), array('class' => 'form-control', 'id' => 'price_' . $age_group->id)) }} {{ Form::label('price_' . $age_group->id, $age_group->name) }}
@endforeach @else @foreach($tour_prices as $tour_price)
{{ Form::text('price_' . $tour_price->age_group_id, $tour_price->price, array('class' => 'form-control', 'id' => 'price_' . $tour_price->age_group_id)) }} {{ Form::label('price_' . $tour_price->age_group_id, $tour_price->age_group_name) }}
@endforeach @endif
Cancel {{ Form::button(' Save', array('type' => 'submit', 'class' => 'btn btn-lg green ')) }}
{{ Form::close() }}
@stop @section('scripts') @parent @stop