@php $userType = $isSeller ? 'buyer' : 'seller'; $pageType = $isSeller ? 'Sales' : 'Purchases'; $userState = $isSeller ? 'seller_state' : 'buyer_state'; $other_u_state = $userState == 'seller_state' ? 'buyer_state' : 'seller_state'; @endphp @section('title', '- Your ' . $pageType) @extends('layouts.user-profile') @section('breadcumb') @include('layouts.partials.breadcumb', ['page' => $pageType]) @endsection @section('section-body') @if (empty($purchases->items()))
@lang('products.not_found')
@lang("profile.".$userType): {{ $purchase->$userType->first_name . ' ' . $purchase->$userType->last_name }}
@lang("profile.date"): {{ dateFormat($purchase->created_at) }}
@lang("profile.status"): {{ ucfirst($purchase->status) }}
@if ($isSeller)@lang("profile.cal_pur_c"): @if ($purchase->buyer_state != null) {{ ucfirst($purchase->buyer_state) }} @else @lang("profile.msg_cal_b") @endif
@else@lang("profile.cal_seller"): @if ($purchase->seller_state != null) {{ ucfirst($purchase->seller_state) }} @else Unrated @endif
@endif@lang('product.description'): {{ $detail->product->description }}
@lang('product.qty'): {{ $detail->qty }}
@lang('product.price'): {{ $detail->product->price }} eBits
@lang('product.fee'): {{ $detail->fee }} eBits
@if ($isSeller)@lang('product.stock'): {{ $detail->product->stock }}
@endif