@extends("layouts.admin.app") @section("page-title") {{__("Dashboard")}} @endSection @section("page-nav-title")

{{__("Orders")}}

{{__("All Orders")}}

@endsection @section("css-links") getLocale() . "/pages/orders.css")}}"> @endsection @section("content") @include("includes.dialog")
@include("admin.order.parts.filter")
{{--
--}} {{--
--}} {{--
--}} {{-- @csrf--}} {{-- --}} {{-- {{__("Export As Excel")}}--}} {{--
--}} {{--
--}} {{--
--}}
@if(isPermissionsAllowed("control-orders")) @endif @foreach($orders as $order) @if(isPermissionsAllowed("control-orders")) @endif @endforeach
#{{__("ID")}} {{__("User")}} {{__("Date")}} {{__("Time")}} {{__("Branch Name")}} {{__("Status")}} {{__("Payment Method")}} {{__("Coupon")}} {{__("Type")}} {{__("Created at")}}{{__("Control")}}
{{$order->id}} {{$order->user->first_name . " " . $order->user->last_name}} {{date("Y/m/d", strtotime($order->created_at))}} {{date("H:i:s", strtotime($order->created_at))}} {{$order->branch->name}} status == "1") yellow @else green @endif">{{$order->getStatusText()}} {{$order->payment->name}} {{ $order->coupon_id ? __("Yes") : __("No") }} {{$order->getTypeText()}} {{$order->created_at->diffForHumans()}} $order->id])}}" class="btn btn-primary mb-3">{{__("Details")}}
@endsection @section("scripts") @endsection