@extends('theme::layouts.app') @section('content') @php $currency=\App\Options::where('key','currency_name')->select('value')->first(); @endphp

{{ __('Your Settings Successfully Updated') }}

{{ __('Total Orders') }}
{{ App\Order::where('user_id',Auth::User()->id)->count() }}
{{ __('Pending Orders') }}
{{ App\Order::where([ ['user_id',Auth::User()->id], ['status',2] ])->count() }}
@php $orders=\App\Order::where('user_id',Auth::User()->id)->orderBy('id','DESC')->paginate(20) @endphp
@foreach($orders as $order) @if($order->status == 1) @if(!$order->review()->count() > 0) @endif @endif @endforeach
{{ __('Order Id') }} {{ __('Payment Method') }} {{ __('Status') }} {{ __('Amount') }} {{ __('Action') }}
{{ $order->id }} {{ $order->payment_method }} @if($order->status == 2)
{{ __('pending') }}
@elseif($order->status == 3)
{{ __('pickup') }}
@elseif($order->status == 1)
{{ __('complete') }}
@elseif($order->status == 0)
{{ __('cancel') }}
@endif
{{ strtoupper($currency->value) }} {{ $order->total }}
@if($order->status == 1) @if(!$order->review()->count() > 0) @endif @endif
{{ $orders->links() }}

Orders

@foreach($orders as $order) @if($order->status == 1) @if(!$order->review()->count() > 0) @endif @endif @endforeach
{{ __('Order Id') }} {{ __('Payment Method') }} {{ __('Status') }} {{ __('Amount') }} {{ __('Action') }}
{{ $order->id }} {{ $order->payment_method }} @if($order->status == 2)
{{ __('pending') }}
@elseif($order->status == 3)
{{ __( 'pickup') }}
@elseif($order->status == 1)
{{ __('complete') }}
@elseif($order->status == 0)
{{ __('cancel') }}
@endif
{{ strtoupper($currency->value) }}{{ $order->total }}
@if($order->status == 1) @if(!$order->review()->count() > 0) @endif @endif
{{ $orders->links() }}

{{ __('Settings') }}

@csrf
{{ __('Password Change') }}

{{ __('Rattings & Reviews') }}

@foreach(Auth::User()->user_reviews as $key=>$review) @endforeach
# {{ __('Resturant Name') }} {{ __('Ratting') }} {{ __('Review') }} {{ __('Action') }}
{{ $key + 1 }} {{ App\User::find($review->vendor_id)->name }} {{ $review->comment_meta->star_rate }} {{ __('Star') }} {{ Str::limit($review->comment_meta->comment,20) }}
@endsection