@extends('master') @section('breadcrumb') @stop @section('content')

Usuario

@if(is_null($user->avatar)) @else @endif
  • Estado: {{ user_status($user->status) }}
  • Nombre: {{ $user->name }}
  • Teléfono: {{ $user->phone }}
  • Correo electrónico: {{ $user->email }}
  • Fecha de registro: {{ $user->created_at }}
  • Cumpleaños: {{ $user->birthday }}

Registrar reservación

{!! Form::open(['url' => '/reservation/add/'.$user->id, 'id' => 'form_reservation']) !!}
{{ Form::date('date', null, ['class' => 'input form-control', 'required', 'id' => 'reservation_date_field', 'min' => date('Y-m-d')]) }}
@if(is_null(Auth::user()->shop_id)) {{ Form::select('shop_id', $shops, null, ['class' => 'input form-select']) }} @else {{ Form::select('shop_id', $shops, Auth::user()->shop_id, ['class' => 'input form-select', 'disabled']) }} @endif
{{ Form::text('hour_1', '11:00', ['class' => 'input', 'required']) }}
{{ Form::select('hour_2', am_pm(), null, ['class' => 'form-select']) }}
{{ Form::number('people', 1, ['class' => 'input', 'required', 'id' => 'number_people', 'min' => '1']) }}
{{ Form::select('table', table_type(), null, ['class' => 'input form-select', 'id' => 'type_table', 'min' => '1']) }}
{{ Form::textarea('user_comment', null, ['class' => 'form-control', 'id' => 'user_comment', 'rows' => 5]) }}
{{ Form::submit('Guardar', ['class' => 'btn btn-success']) }}
{!! Form::close() !!}
@stop