@extends('layouts.app')
@section('content')
<div class="app-content content ">
    <div class="content-overlay"></div>
    <div class="header-navbar-shadow"></div>
    <div class="content-wrapper container-xxl p-0">
        <div class="content-header row">
            <div class="content-header-left col-md-9 col-12 mb-2">
                <div class="row breadcrumbs-top">
                    <div class="col-12">
                        <h2 class="content-header-title float-start mb-0">Create Order</h2>
                    </div>
                </div>
            </div>
        </div>
        <div class="content-body">
            <section class="app-user-edit">
                <div class="card">
                    <div class="card-body">
                        <div class="tab-content">
                            <div class="tab-pane active" id="account" aria-labelledby="account-tab" role="tabpanel">
                                {!! Form::open(['action'=>'App\Http\Controllers\OrderController@makeOrder','method' =>'post']) !!}
                                @csrf
                                <div class="d-flex mb-2">
                                    <div class="mt-50">
                                    <h3 style="text-transform:uppercase;">{{$user->name}}</h3>
                                       
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-md-4">
                                        <div class="mb-1">
                                            <label class="form-label" for="username">Number of Bottles</label>
                                            <input type="number" class="form-control" placeholder="Number of Bottles" value="" name="number_of_bottles" id="bottles" />
                                            <input type="hidden" class="form-control" name="user_id" id="username" value="{{$user->id}}" />
                                        </div>
                                    </div>
                                   
                                  
                                    <div class="col-12 d-flex flex-sm-row flex-column mt-2">
                                        <input type="submit" class="btn btn-primary mb-1 mb-sm-0 me-0 me-sm-1" name="" value="Create Order">
                                    </div>
                                </div>
                                {!! Form::close() !!}
                            </div>
                        </div>
                    </div>
                </div>
            </section>
        </div>
    </div>
</div>
@endsection