@foreach ($dashboard->orders as $order) @endforeach
{{ trans('theme.date') }} {{ trans('theme.orders') }} {{ trans('theme.amount') }}
{!! $order->created_at->format('M j') !!} {{ $order->shop->name }} {!! $order->order_number !!} {!! $order->orderStatus() !!} {{ $order->item_count }} {!! get_formated_price($order->grand_total, 2) !!}
@foreach ($dashboard->wishlists as $wish) @if ($wish->inventory) @php $wish_inventory_translation = $wish->inventory->translations->where('language_id',getLocaleId())->first(); @endphp @elseif($wish->product) @php $wish_inventory_translation = $wish->product->translations->where('language_id',getLocaleId())->first(); @endphp @endif @endforeach
{{ trans('theme.wishlist') }}
{{-- {!! $wish->inventory->title !!}--}} {!! \Illuminate\Support\Str::limit(($wish_inventory_translation->title ?? $wish->inventory->title), 35) !!} @lang('theme.button.buy_now')
{!! $wish_inventory_translation->name ?? $wish->product->name !!} {!! \Illuminate\Support\Str::limit(($wish_inventory_translation->name ?? $wish->product->name), 35) !!} @lang('theme.view_more_offers', ['count' => $wish->product->inventories_count])