@extends('layouts.app') @section('title', 'Edit Table') @section('content')

Edit Table

{!! Form::open(['url' => action('Restaurant\TableController@update', [$table->id]), 'method' => 'PUT', 'id' => 'table_edit', 'enctype' => 'multipart/form-data' ]) !!}
{!! Form::label('status', 'Table Status' . ':*') !!}
{!! Form::hidden('status', 0, null); !!} {!! Form::checkbox('status', 1, $table->status , [ 'class' => 'input-icheck']); !!} {{ __( 'Active Table' ) }}
{!! Form::label('name', __( 'restaurant.table_name' ) . ':*') !!} {!! Form::text('name', $table->name, ['class' => 'form-control', 'required', 'placeholder' => __( 'brand.brand_name' )]); !!}
{!! Form::label('number_of_chairs', 'Number of Chairs' . ':*') !!} {!! Form::number('number_of_chairs', $table->number_of_chairs, ['class' => 'form-control', 'required', 'placeholder' => 'Number of Chairs' ]); !!}
{!! Form::label('image', 'Upload Space Image' . ':') !!} {!! Form::file('image', ['id' => 'upload_image', 'accept' => 'image/*']); !!}
{!! Form::label('description', __( 'restaurant.short_description' ) . ':') !!} {!! Form::text('description', $table->description, ['class' => 'form-control','placeholder' => __( 'brand.short_description' )]); !!}
{!! Form::close() !!}
@endsection