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

Paquetes Turísticos

{!! Form::open(['route' => ['tourism.update', Crypt::encrypt($tourism->id)], 'method' => 'PUT', 'class'=>"kt-form", 'id' => 'create_form']) !!} {{ csrf_field() }}

Datos del Cliente

{{ Form::text('customer', $tourism->customer->name, array('class'=>'form-control', 'id'=>'customer')) }}
{{ Form::text('phone', $tourism->customer->phone, array('class'=>'form-control', 'id'=>'phone')) }}
{{ Form::text('email', $tourism->customer->email, array('class'=>'form-control', 'id'=>'email')) }}
{{ Form::date('in', $tourism->in, array('class'=>'form-control', 'id'=>'in')) }}
{{ Form::date('out', $tourism->out, array('class'=>'form-control', 'id'=>'out')) }}
{{ Form::text('zone', $tourism->zone, array('class'=>'form-control', 'id'=>'zone')) }}

Items

{{ Form::text('product', null, array('class'=>'form-control', 'id'=>'product')) }}
{{ Form::number('amount', null, array('class'=>'form-control', 'id'=>'amount')) }}
{{ Form::number('quantity', null, array('class'=>'form-control', 'id'=>'quantity')) }}
{{ 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['quantity']); @endphp @endforeach
Tipo Hotel / Hospedaje / Seguros / Transporte Tarifa Cantidad Total
@if($value['type'] == 'ADT') {{ $value['number_type'] }} Adulto @else {{ $value['number_type'] }} Niño @endif {{ $value['product'] }} $ {{ number_format($value['amount'], 2) }} {{ number_format($value['quantity'], 2) }} $ {{ number_format($value['total'], 2) }}
Total $ {{ number_format($total_amount, 2) }}
@endif
{!! Form::close(); !!}
@endsection @section('js') @endsection