@extends('admins.layouts.index') @section('content') {!! Form::model($model, ['method'=>'post','class'=>'form-horizontal','files'=>true]) !!}

{{__('Photos Information')}}

@foreach($model->photos()->orderBy('is_header','desc')->get() as $photo)
@if($photo->is_header)
{{ __('Header') }}
@endif
@endforeach

{{__('Basic Information')}}

{!! Form::label('title', __('Title'), ['class'=>'col-sm-4 col-form-label text-right']) !!}
{!! Form::text('title', null, ['id'=>'title','class'=>'form-control-plaintext '.($errors->first('title') ? 'is-invalid' : ''),'placeholder'=>__('Title'),'disabled']) !!} {!!$errors->first('title', ':message')!!}
{!! Form::label('category_id', __('Category'), ['class'=>'col-sm-4 col-form-label text-right']) !!}
{!! Form::text('category_id', $model->child_string_displayed('category_id','name'), ['id'=>'category_id','class'=>'form-control-plaintext '.($errors->first('category_id') ? 'is-invalid' : ''),'placeholder'=>__('Category'),'disabled']) !!} {!!$errors->first('category_id', ':message')!!}
{!! Form::label('description', __('Description'), ['class'=>'col-sm-2 col-form-label text-right']) !!}
{!! $model->description !!}
{!!$errors->first('description', ':message')!!}
{!! Form::label('attachment_brochure', __('Brochure (En)'), ['class'=>'col-sm-4 col-form-label text-right']) !!}
@if($model->attachment_brochure) {{ __('View The File Here') }} @endif {!!$errors->first('attachment_brochure', ':message')!!}
{!! Form::label('attachment_brochure_ch', __('Brochure (Ch)'), ['class'=>'col-sm-4 col-form-label text-right']) !!}
@if($model->attachment_brochure_ch) {{ __('View The File Here') }} @endif {!!$errors->first('attachment_brochure_ch', ':message')!!}
{!! Form::label('highlight_places', __('Highlight Places'), ['class'=>'col-sm-2 col-form-label text-right']) !!}
{!! Form::text('highlight_places', null, ['id'=>'highlight_places','class'=>'form-control-plaintext '.($errors->first('highlight_places') ? 'is-invalid' : ''),'placeholder'=>__('Highlight Places'),'disabled']) !!} {!!$errors->first('highlight_places', ':message')!!}

{{__('Time Table Information')}}

@if(!is_null($model->time_tables)) @foreach($model->time_tables as $row) @php $i++; @endphp @endforeach @endif
# {{ __('Days') }} {{ __('Description') }}
{{ $i }} {!! Form::text('time_tables['.$i.'][label_days]', isset($row['label_days']) ? $row['label_days']:'', ['id'=>'time_tables_label_days_'.$i,'class'=>'text-center form-control-plaintext '.($errors->first('time_tables.'.$i.'.label_days]') ? 'is-invalid' : ''), 'disabled']) !!} {!! Form::textarea('time_tables['.$i.'][description]', isset($row['description']) ? $row['description']:null, ['rows'=>5,'id'=>'time_tables_description_'.$i,'class'=>'form-control-plaintext '.($errors->first('time_tables.'.$i.'.description]') ? 'is-invalid' : ''),'disabled']) !!}

{{__('Schedule Information')}}

@foreach($model->schedules as $row) @php $n++; @endphp @endforeach
# {{ __('Date') }} {{ __('Max. Pax.') }} {{ __('Adult Price') }} {{ __('Discounted Price') }} {{ __('Child Price') }} {{ __('Discounted Price') }}
{{ $n }} {!! Form::text('schedules['.$n.'][tourist_date]', $row->tourist_date, ['id'=>'schedules_tourist_date_'.$n,'class'=>'datepicker text-center form-control-plaintext '.($errors->first('schedules.'.$n.'.tourist_date]') ? 'is-invalid' : ''), 'disabled']) !!} {!! Form::text('schedules['.$n.'][max_pax]', $row->max_pax, ['id'=>'schedules_max_pax_'.$n,'class'=>'text-center form-control-plaintext '.($errors->first('schedules.'.$n.'.max_pax]') ? 'is-invalid' : ''), 'disabled']) !!} {!! Form::text('schedules['.$n.'][adult_price]', $row->adult_price, ['id'=>'schedules_adult_price_'.$n,'onchange'=>'init_double(this)','class'=>'text-center form-control-plaintext '.($errors->first('schedules.'.$n.'.adult_price]') ? 'is-invalid' : ''), 'disabled']) !!} {!! Form::text('schedules['.$n.'][adult_discounted_price]', $row->adult_discounted_price, ['id'=>'schedules_adult_discounted_price_'.$n,'onchange'=>'init_double(this)','class'=>'text-center form-control-plaintext '.($errors->first('schedules.'.$n.'.adult_discounted_price]') ? 'is-invalid' : ''), 'disabled']) !!} {!! Form::text('schedules['.$n.'][child_price]', $row->child_price, ['id'=>'schedules_child_price_'.$n,'onchange'=>'init_double(this)','class'=>'text-center form-control-plaintext '.($errors->first('schedules.'.$n.'.child_price]') ? 'is-invalid' : ''), 'disabled']) !!} {!! Form::text('schedules['.$n.'][child_discounted_price]', $row->child_discounted_price, ['id'=>'schedules_child_discounted_price_'.$n,'onchange'=>'init_double(this)','class'=>'text-center form-control-plaintext '.($errors->first('schedules.'.$n.'.child_discounted_price]') ? 'is-invalid' : ''), 'disabled']) !!}

{{__('More Information')}}

{!! Form::label('meal_provided', __('Meal Provided'), ['class'=>'col-sm-4 col-form-label text-right']) !!}
{!! Form::text('meal_provided', $model->string_switch_displayed('meal_provided'), ['id'=>'meal_provided','class'=>'form-control-plaintext '.($errors->first('meal_provided') ? 'is-invalid' : ''),'placeholder'=>__('Meal Provided'),'disabled']) !!} {!!$errors->first('meal_provided', ':message')!!}
{!! Form::label('hotel_provided', __('Hotel Provided'), ['class'=>'col-sm-4 col-form-label text-right']) !!}
{!! Form::text('hotel_provided', $model->string_switch_displayed('hotel_provided'), ['id'=>'hotel_provided','class'=>'form-control-plaintext '.($errors->first('hotel_provided') ? 'is-invalid' : ''),'placeholder'=>__('Hotel Provided'),'disabled']) !!} {!!$errors->first('hotel_provided', ':message')!!}
{!! Form::label('accessibiliy_provided', __('Accessibiliy Provided'), ['class'=>'col-sm-4 col-form-label text-right']) !!}
{!! Form::text('accessibiliy_provided', $model->string_switch_displayed('accessibiliy_provided'), ['id'=>'accessibiliy_provided','class'=>'form-control-plaintext '.($errors->first('accessibiliy_provided') ? 'is-invalid' : ''),'placeholder'=>__('Accessibiliy Provided'),'disabled']) !!} {!!$errors->first('accessibiliy_provided', ':message')!!}
{!! Form::label('tour_guide_provided', __('Tour Provided'), ['class'=>'col-sm-4 col-form-label text-right']) !!}
{!! Form::text('tour_guide_provided', $model->string_switch_displayed('tour_guide_provided'), ['id'=>'tour_guide_provided','class'=>'form-control-plaintext '.($errors->first('tour_guide_provided') ? 'is-invalid' : ''),'placeholder'=>__('Tour Provided'),'disabled']) !!} {!!$errors->first('tour_guide_provided', ':message')!!}
{!! Form::label('transport_provided', __('Transport Provided'), ['class'=>'col-sm-4 col-form-label text-right']) !!}
{!! Form::text('transport_provided', $model->string_switch_displayed('transport_provided'), ['id'=>'transport_provided','class'=>'form-control-plaintext '.($errors->first('transport_provided') ? 'is-invalid' : ''),'placeholder'=>__('Transport Provided'),'disabled']) !!} {!!$errors->first('transport_provided', ':message')!!}

{!! Form::label('status', __('Status'), ['class'=>'col-sm-4 col-form-label text-right']) !!}
{!! Form::text('status', $model->string_status_displayed('status'), ['id'=>'status','class'=>'form-control-plaintext '.($errors->first('status') ? 'is-invalid' : ''),'placeholder'=>__('Status'),'disabled']) !!} {!!$errors->first('status', ':message')!!}
{!! Form::close() !!} @endsection @section('script') @endsection