@extends('admin.layout') @section('title',__('Orders')) @section('css') @endsection @section('breadcrump')

{{ __('Orders') }}

@endsection @section('content')

{{ __('Orders table') }}


@foreach($orders as $order) @endforeach
# {{ __('User') }} {{ __('Customer Name') }} {{ __('State') }} {{ __('Phone') }} {{ __('Phone') }} 2 {{ __('Brand') }} {{ __('Products') }} {{ __('Storehouse') }} {{ __('Total') }} {{ __('Status') }} {{ __('Shipping company') }} {{ __('Order date') }} {{ __('Action') }}
{{$order->order_id}} @if($order['user']) {{$order->user['name']}} @endif {{$order['name']}} @if(isset($order['state'])) - {{$order['state']['name']}} @endif @if(isset($order['state']))
- {{$order['city']['name']}} @endif @if(isset($order->street))
- {{$order->street}} @endif
{{$order['phone']}} {{$order['phone_2']}} {{$order['brand']}} @foreach($order->order_products as $order_products)

{{ $order_products->product->name }}

@endforeach
{{ __('Storehouse ' .@$order->order_products[0]->product->storehouse ) }} @if(count($order->getMerchantsNames()) > 0)
@foreach($order->getMerchantsNames() as $merchant)

{{ $merchant }}

@endforeach @endif
{{formated_price($order->total+ $count_commission)}} {{$order->shipping_company}} {{date('d-m-Y',strtotime($order->created_at))}}
@csrf @method('delete')
@include('admin.pages.orders.status_modal') @endsection @section('scripts') @include('admin.pages.orders.order_js') @endsection