@extends('front.layouts.app') @push('title', __('My Orders')) @section('content') @include('front.profile.header')
@if ($orders->count() > 0) @foreach ($orders as $order)
#{{__('OrderID')}}: {{ $order->order_id }} @if($order->order_status) {{ $order->order_status }} @endif @if($order->payment_status == 1)
@csrf @if ($order->file) @endif @if ($order->file_url) {{ __('Download File') }} @endif @if ($order->stocks) @endif
@endif
@if($order->payment_status == 1)
{{ json_decode($order->product)->qty }} x {{ json_decode($order->product)->name }} ({{config('app.currency_symbol')}}{{$order->total}}) @if($order->customer_answers) @endif {{ $order->created_at->format('d/m/Y H:i') }}
@if ($order->stocks) @foreach (json_decode($order->stocks) as $key => $stock)
@endforeach @endif
@endif
@endforeach {{ $orders->links() }} @else
{{ __('No orders yet.') }} {{ __('Go to shop') }}
@endif
@endsection @push('js') @endpush