@extends('layouts.app')
@section('content')
<style>
    .publisbnt { margin-top: 22px;}
    </style>
<!-- BEGIN: 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">{{__('lang.admin_menu_orders')}}</h2>
                        <div class="breadcrumb-wrapper">
                            <ol class="breadcrumb">
                                <li class="breadcrumb-item"><a href="{!! route('dashboard')!!}">{{__('lang.admin_menu_dashboard')}}</a></li>
                                <li class="breadcrumb-item"><a href="{!! route('orders.index') !!}">{{__('lang.admin_menu_orders_list')}}</a></li>
                                <li class="breadcrumb-item active">{{__('lang.admin_order_detail')}}</li>
                            </ol>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="content-body">
            <div class="row match-height">
                <div class="col-lg-4 col-md-6 col-12">
                    @include('orders.order-info')
                </div>
                <div class="col-lg-4 col-md-6 col-12">
                    @include('orders.order-address')
                </div>
                <div class="col-lg-4 col-md-6 col-12">
                    @include('orders.order-user-info')
                </div>
            </div>
            <div class="row match-height">
                <div class="col-xl-12 col-md-6 col-12">
                    <div class="card card-statistics">
                        <div class="card-body statistics-body">
                            {!! Form::model($data, ['method' => 'PATCH','enctype'=>'multipart/form-data', 'route' => ['orders.update', $data->id]]) !!}
                            @csrf
                            <div class="row">
                                <div class="col-md-4">
                                    <div class="mb-1">
                                        <label class="form-label" for="username">{{__('lang.admin_order_status')}}</label>
                                        {!! Form::select('order_status_id', $orderStatus, null, ['class' => 'form-select']) !!}
                                    </div>
                                </div>
                                <div class="col-md-4">
                                    <div class="mb-1">
                                        <button type="submit" class="btn btn-primary publisbnt">{{__('lang.admin_button_save_changes')}}</button>
                                    </div>
                                </div>
                            </div>
                            {!! Form::close() !!}
                        </div>
                    </div>
                </div>
            </div>
            <div class="row match-height">
                <div class="col-xl-12 col-md-6 col-12">
                    @include('orders.order-products')
                </div>
            </div>
        </div>
    </div>
</div>
<!-- END: Content-->
@endsection