<?php $__env->startSection('title', 'Orders'); ?>
<?php $__env->startSection('content'); ?>
    <div class="main-content">
        <section class="section">
            <div class="section-header">
                <h1>Create Order</h1>
                <div class="section-header-breadcrumb">
                    <div class="breadcrumb-item active"><a href="<?php echo e(route('home')); ?>">Dashboard</a></div>
                    <div class="breadcrumb-item active"><a href="<?php echo e(route('orders.index')); ?>">Orders</a></div>
                    <div class="breadcrumb-item">Create Orders</div>
                </div>
            </div>
            <div class="section-body">
                <div class="row">
                    <div class="col-md-6 m-auto">
                        <div class="card p-4">
                            <?php echo Form::open(['route' => 'orders.store', 'method' => 'Post', 'enctype' => 'multipart/form-data']); ?>

                            <div class="row">
                                <div class="form-group col-md-6">
                                    <?php echo e(Form::label('users', __('User'))); ?>

                                    <div class="input-group ">

                                        <?php echo Form::select('user_id', $users, null, ['class' => 'form-control']); ?>

                                    </div>
                                </div>
                                <div class="form-group col-md-6 ">
                                    <?php echo e(Form::label('mobile', __('Mobile'))); ?>

                                    <div class="input-group ">

                                        <?php echo Form::text('mobile', null, ['class' => 'form-control', ' required', 'placeholder' => 'Enter Mobile']); ?>

                                    </div>
                                </div>
                                <div class="form-group col-md-6">
                                    <?php echo e(Form::label('state', __('State'))); ?>

                                    <div class="input-group">

                                        <?php echo Form::text('state', null, ['class' => 'form-control', ' required', 'placeholder' => 'Enter State']); ?>

                                    </div>
                                </div>
                                <div class="form-group col-md-6">
                                    <?php echo e(Form::label('city', __('City'))); ?>

                                    <div class="input-group">

                                        <?php echo Form::text('city', null, ['class' => 'form-control', ' required', 'placeholder' => 'Enter City']); ?>

                                    </div>
                                </div>
                                <div class="form-group col-md-6">
                                    <?php echo e(Form::label('pickup_latitude', __('Pickup latitude'))); ?>

                                    <div class="input-group">

                                        <?php echo Form::text('pickup_latitude', null, [
                                            'class' => 'form-control',
                                            ' required',
                                            'placeholder' => 'Enter Pickup latitude',
                                        ]); ?>

                                    </div>
                                </div>
                                <div class="form-group col-md-6">
                                    <?php echo e(Form::label('pickup_longitude', __('Pickup longitude'))); ?>

                                    <div class="input-group">
                                        <?php echo Form::text('pickup_longitude', null, [
                                            'class' => 'form-control',
                                            ' required',
                                            'placeholder' => 'Enter Pickup longitude',
                                        ]); ?>

                                    </div>
                                   
                                </div>
                                 <div class="form-group col-md-12 ">
                                        <?php echo e(Form::label('pickup_address', __('Pickup Address'))); ?>

                                        <div class="input-group">
                                            <?php echo Form::textarea('pickup_address', null, [
                                                'class' => 'form-control',
                                                ' required',
                                                'placeholder' => 'Enter Pickup Address',
                                            ]); ?>

                                        </div>
                                    </div>
                                    <div class="form-group col-md-6">
                                    <?php echo e(Form::label('dropoff_latitude', __('Dropoff latitude'))); ?>

                                    <div class="input-group">

                                        <?php echo Form::text('dropoff_latitude', null, [
                                            'class' => 'form-control',
                                            ' required',
                                            'placeholder' => 'Enter Pickup latitude',
                                        ]); ?>

                                    </div>
                                </div>
                                <div class="form-group col-md-6">
                                    <?php echo e(Form::label('dropoff_longitude', __('Dropoff  longitude'))); ?>

                                    <div class="input-group">
                                        <?php echo Form::text('dropoff_longitude', null, [
                                            'class' => 'form-control',
                                            ' required',
                                            'placeholder' => 'Enter Pickup longitude',
                                        ]); ?>

                                    </div>
                                   
                                </div>
                                 <div class="form-group col-md-12 ">
                                        <?php echo e(Form::label('dropoff_address', __('Dropoff Address'))); ?>

                                        <div class="input-group">
                                            <?php echo Form::textarea('dropoff_address', null, [
                                                'class' => 'form-control',
                                                ' required',
                                                'placeholder' => 'Enter Pickup Address',
                                            ]); ?>

                                        </div>
                                    </div>
                                      <div class="form-group col-md-6">
                                    <?php echo e(Form::label('users', __('Assign Driver'))); ?>

                                    <div class="input-group ">

                                        <?php echo Form::select('driver_id', $drivers, null, ['class' => 'form-control',' required',]); ?>

                                    </div>
                                </div>
                            </div>
                            
                            


                            <div class="btn-flt">
                                <a href="<?php echo e(route('orders.index')); ?>" class="btn btn-secondary"><?php echo e(__('Cancel')); ?></a>
                                <button type="submit" class="btn btn-primary"><?php echo e(__('Save')); ?></button>
                            </div>
                            <?php echo Form::close(); ?>

                        </div>
                    </div>
                </div>
            </div>
        </section>
    </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.admin', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\laragon\www\driver\resources\views/orders/create.blade.php ENDPATH**/ ?>