@extends($active_theme) @section('title') {{__('user.Buying product')}} @endsection @section('frontend-content')
@include('user.inc.profile_header')

{{__('user.Buying Items')}}

@foreach ($order_items as $item) @if ($item->order->order_status == 1)
download
{{ html_decode($item->product->productlangfrontend->name) }}

{{__('user.Item by')}} {{ html_decode($item->author->name) }}

@if ($item->variant_id!=null)

{{ html_decode($item->variant->variant_name) }}

@endif @if ($item->price_type!=null)

{{ ucfirst($item->price_type) }}

@endif

@if (session()->get('currency_position') == 'right') {{ html_decode($item->price * session()->get('currency_rate')) }}{{ session()->get('currency_icon') }} @else {{ session()->get('currency_icon') }}{{ html_decode($item->price * session()->get('currency_rate')) }} @endif

@if ($item->product_type=='script') {{__('user.Download File')}} @else @if ($item->variant) {{__('user.Download File')}} @endif @endif @php $review=App\Models\Review::where(['product_id' => $item->product->id, 'status' => 1])->get()->average('rating'); @endphp

@for ($i = 1; $i <= 5; $i++) @if ($i <= $review) @else @endif @endfor

@endif @endforeach
@if ($order_items->hasPages()) {{ $order_items->links('custom_pagination') }} @endif
@foreach ($order_items as $item) @endforeach
@include('user.inc.user_information')
@endsection @push('frontend_js') @endpush