@extends('layouts.panel.base') @section('tourism-active', 'kt-menu__item--active') @section('title', 'Crear Paquete Turístico') @section('content')

Paquetes Turísticos

{!! Form::open(['route' => ['panel.tourism.store'], 'method' => 'POST', 'class'=>"kt-form", 'id' => 'create_form']) !!} {{ csrf_field() }}

Datos del Cliente

{{ Form::text('customer', null, array('class'=>'form-control', 'id'=>'customer')) }}
{{ Form::text('phone', null, array('class'=>'form-control', 'id'=>'phone')) }}
{{ Form::text('email', null, array('class'=>'form-control', 'id'=>'email')) }}
{{ Form::date('in', null, array('class'=>'form-control', 'id'=>'in')) }}
{{ Form::date('out', null, array('class'=>'form-control', 'id'=>'out')) }}
{{ Form::text('zone', null, array('class'=>'form-control', 'id'=>'zone')) }}
{{ Form::text('hotel', null, array('class'=>'form-control', 'id'=>'hotel')) }}
{{ Form::number('amount', null, array('class'=>'form-control', 'id'=>'amount')) }}
{{ Form::number('day', null, array('class'=>'form-control', 'id'=>'day')) }}
{{ Form::number('total', null, array('class'=>'form-control', 'id'=>'total')) }}
{{ Form::text('observation', null, array('class'=>'form-control', 'id'=>'observation')) }}

@if($items != null) @php $total_amount = 0; @endphp @foreach($items as $key => $value) @php $total_amount = $total_amount + ($value['amount'] * $value['day']); @endphp @endforeach
Tipo Hotel / Hospedaje Tarifa Noches Total
@if($value['type'] == 'ADT') {{ $value['number_type'] }} Adulto @else {{ $value['number_type'] }} Niño @endif {{ $value['hotel'] }} $ {{ number_format($value['amount'], 2) }} {{ $value['day'] }} $ {{ number_format($value['total'], 2) }}
Total $ {{ number_format($total_amount, 2) }}
@endif
{{ Form::text('insurance', null, array('class'=>'form-control', 'id'=>'insurance')) }}
{{ Form::number('amount_insurance', null, array('class'=>'form-control', 'id'=>'amount_insurance')) }}
{{ Form::number('total_insurance', null, array('class'=>'form-control', 'id'=>'total_insurance')) }}
{{ Form::text('observation_insurance', null, array('class'=>'form-control', 'id'=>'observation_insurance')) }}

@if($items_insurance != null) @php $total_amount_insurance = 0; @endphp @foreach($items_insurance as $key => $value) @php $total_amount_insurance = $total_amount_insurance + ($value['amount'] * $value['quantity']); @endphp @endforeach
Tipo Seguro Tarifa Cantidad Total
@if($value['type'] == 'ADT') {{ $value['number_type'] }} Adulto @else {{ $value['number_type'] }} Niño @endif {{ $value['insurance'] }} $ {{ number_format($value['amount'], 2) }} {{ $value['quantity'] }} $ {{ number_format($value['total'], 2) }}
Total $ {{ number_format($total_amount_insurance, 2) }}
@endif
{!! Form::close(); !!}
@endsection @section('js') @endsection