@extends('layouts.layout-2') @section('content') {!! Form::open(['url' => route('iq_travel_programm_detail', [$id]), 'class' => 'form-horizontal']) !!}

Reiseprogramm
  {{ __('back') }}

Allgemein

{{ Form::text('name', $model->name, array('placeholder'=>__('Name'), 'class'=>'form-control', 'id'=>'name', 'required'=>true)) }}
{{ Form::select('typ', \App\Models\IQTravelProgram::$status_type , $model->typ, array('class'=>'custom-select', 'id'=>'typ')) }}
{{ Form::select('travel_country_id', \App\Services\Model::getTravelCountryArray(true) , $model->travel_country_id, array('class'=>'custom-select', 'id'=>'travel_country_id')) }}
{{ Form::text('code', $model->code, array('placeholder'=>__('Code / Kürzel'), 'class'=>'form-control', 'id'=>'code')) }}

{{ Form::textarea('description', $model->description, array('class'=>'form-control autoExpand', 'rows'=>2)) }}
{{ Form::textarea('highlights', $model->highlights, array('class'=>'form-control autoExpand', 'rows'=>2)) }}

Reisebausteine für diese Programm

@if($model->id)
In Arbeit, hier fehlen noch mehr Felder, Drag and Drop, automatische Brechnungen, etc.
@if($model->i_q_travel_program_items) @foreach($model->i_q_travel_program_items as $i_q_travel_program_item) @endforeach @endif
  {{__('POS')}} {{__('Name')}} {{__('Typ')}} {{__('Land')}} {{__('Ort(e)')}}
{{ $i_q_travel_program_item->pos }} {{ $i_q_travel_program_item->i_q_travel_item->name }} @if($i_q_travel_program_item->i_q_travel_item->draft_type) {{ $i_q_travel_program_item->i_q_travel_item->draft_type->name }} @endif @if($i_q_travel_program_item->i_q_travel_item->travel_country){{ $i_q_travel_program_item->i_q_travel_item->travel_country->name }} @endif @if($i_q_travel_program_item->i_q_travel_item->i_q_travel_item_places->count()) @foreach($i_q_travel_program_item->i_q_travel_item->i_q_travel_item_places as $i_q_travel_item_place) {{ $i_q_travel_item_place->travel_place->name }}
@endforeach @endif
@else

Das Programm muss erst mit einem Name gespeichert werden.

@endif
  {{ __('back') }}
{!! Form::close() !!} @endsection