@auth @extends('layouts.master') @section('content') @include('balde_components.navs.side-bar') @include('balde_components.navs.nav-bar-v2')
user avatar

{{auth()->user()->name}}

{{auth()->user()->email}}

{{ __('Acount created')}} : {{auth()->user()->created_at->diffForHumans()}}

{{ __('Client acount')}}

{{-- My orders --}}

{{ __('My Orders')}}

@forelse (auth()->user()->orders->where("active",1) as $order) @if( count($order->productOrders) !=0)

{{$order->created_at->diffForHumans()}}

{{$order->orderStatus->status}}

{{ __('Market')}} :
{{$order->market()->name}}
{{$order->market()->phone}}
{{ __('Order')}} : {{$order->id}}

    @foreach ($order->productOrders as $productOrder)
  • {{$productOrder->product->name}} (x{{$productOrder->quantity}}) @if(count($productOrder->options)!=0) ({{ __('With extras')}}) @endif
  • @endforeach @if($order->payment)
  • {{ __('Payment in')}}:
    {{$order->payment->method}}
  • {{ __('Total')}}
    {!! getPrice($order->payment->price) !!}
  • @else
  • {{ __('Without Payment')}}
  • @endif @if ($order->delivery_address_id && $order->deliveryAddress)
  • {{$order->deliveryAddress->address}}
  • @else
  • {{$order->market()->address}}
  • @endif

@endif @empty
{{ __('No Order Yet')}}
@endforelse
@include('balde_components.footer') @endsection @endauth