@extends('layouts.app') {{-- Customize layout sections --}} @section('subtitle', 'GUESTS') @section('content_header_title', 'GUESTS') @section('content_header_subtitle', 'UPDATE') {{-- Content body: main page content --}} @section('content_body') {{html()->form('POST', route('guest.update', encrypt($guest->id)))->open()}}

UPDATE GUEST

{{html()->label('Name', 'name')}} {{html()->text('name', $guest->name)->class('form-control'.($errors->has('name') ? ' is-invalid' : ''))->placeholder('Name')}} {{$errors->first('name')}}
{{html()->label('Email', 'email')}} {{html()->email('email', $guest->email)->class('form-control'.($errors->has('email') ? ' is-invalid' : ''))->placeholder('Email')}} {{$errors->first('email')}}
{{html()->label('Table Number', 'table_number_id')}} {{html()->select('table_number_id', $table_numbers, $guest->table_number_id)->class('form-control'.($errors->has('table_number_id') ? ' is-invalid' : ''))->placeholder('Select table number')}} {{$errors->first('table_number_id')}}
{{html()->label('Position', 'position_id')}} {{html()->select('position_id', $positions, $guest->position_id)->class('form-control'.($errors->has('position_id') ? ' is-invalid' : ''))->placeholder('Select position')}} {{$errors->first('position_id')}}
{{html()->label('Company', 'company_id')}} {{html()->select('company_id', $companies, $guest->company_id)->class('form-control'.($errors->has('company_id') ? ' is-invalid' : ''))->placeholder('Select company')}} {{$errors->first('company_id')}}
{{html()->label('Region', 'region_id')}} {{html()->select('region_id', $regions, $guest->region_id)->class('form-control'.($errors->has('region_id') ? ' is-invalid' : ''))->placeholder('Select region')}} {{$errors->first('region_id')}}
{{html()->label('Contact Person', 'contact_person_id')}} {{html()->select('contact_person_id', $contact_people, $guest->contact_person_id)->class('form-control'.($errors->has('contact_person_id') ? ' is-invalid' : ''))->placeholder('Select contact person')}} {{$errors->first('contact_person_id')}}
{{html()->form()->close()}} @stop {{-- Push extra CSS --}} @push('css') {{-- Add here extra stylesheets --}} @endpush {{-- Push extra scripts --}} @push('js') @endpush