@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")
@if($dateFrom != "all" && $dateTo != "all")
@csrf
@endif
@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")}} {{__("Sub Total")}} {{__("Delivery Price")}} {{__("Sales Tax")}} {{__("Total")}} {{__("invoice")}} {{__("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->subtotal}} {{__("JD")}} {{$order->delivery}} {{__("JD")}} {{(number_format($order->delivery * $tax , 2)) + (number_format($order['vat_value'] , 2))}} {{$order->subtotal + $order->delivery}} {{__("JD")}} @if(!is_null($order->invoice_url)) {{__("invoice")}} @endif {{$order->created_at->diffForHumans()}} $order->id])}}" class="btn btn-primary mb-3">{{__("Details")}}
@endsection @section("scripts") @endsection