@extends("Front::Layout.Panel.master")

@section('content')

    <div class="dashboard_main">
        <div class="factor_sec mx-auto">
            <div class="dashboard_main_container_style  mx-auto mb-4">
                <h5 class="dashboard_main_container_style_header">پیشخوان</h5>
                <div class="data_text d-flex flex-wrap mb-md-0">
                    <div class="col-sm-3 align-items-center col-6 d-flex flex-column mb-3 mb-md-0">
                        <span class="text-muted small ">نام و نام‌خانوادگی</span>
                        <span class="text-dark mt-1">{{auth()->user()->name ?? '-'}} {{auth()->user()->lname ?? '-'}}</span>
                    </div>
                    <div class="col-sm-3 align-items-center col-6 d-flex flex-column mb-3 mb-md-0">
                        <span class="text-muted small ">موبایل</span>
                        <span class="text-dark persianumber mt-1">{{auth()->user()->mobile ?? '-'}}</span>
                    </div>
                    <div class="col-sm-3 align-items-center col-6 d-flex flex-column mb-3 mb-md-0">
                        <span class="text-muted small ">ایمیل</span>
                        <span class="text-dark mt-1">{{auth()->user()->email ?? '-'}}</span>
                    </div>
                    <div class="col-sm-3 align-items-center col-6 d-flex flex-column mb-3 mb-md-0">
                        <span class="text-muted small ">تاریخ ثبت نام</span>
                        <span class="text-dark persianumber mt-1">{{IR_TimestampToDate(auth()->user()->created_at)}}</span>
                    </div>
                </div>
                <ul class="list-group mt-sm-5 mt-2  p-0 mx-sm-5">
                    <li class="list-group-item d-flex justify-content-between">
                        <span class="small">تعداد کل سفارشات</span>
                        <span class="small persianumber">{{$allOrderCount}}</span>
                    </li>
                    <li class="list-group-item d-flex justify-content-between">
                        <span class="small">تعداد سفارشات در حال پیگیری</span>
                        <span class="small persianumber">{{$doingOrderCount}}</span>
                    </li>
                    <li class="list-group-item d-flex justify-content-between">
                        <span class="small">تعداد سفارشات کنسل شده</span>
                        <span class="small persianumber">{{$allCancelOrderCount}}</span>
                    </li>
                </ul>
            </div>
        </div>


    </div>

@endsection
