@extends('frontend.master') @section('title', 'Dashboard') @section('content')
@csrf @method('put')
@error('name') {{ $message }} @enderror
@error('email') {{ $message }} @enderror
@error('mobile') {{ $message }} @enderror
@if ($orders->isEmpty())

No order has been made yet.

@endif @foreach ($orders as $order)
{{ __('text.Order ID.') }} {{ $order->id }}
{{ __('text.Products') }}:
@foreach ($order->orderDetails as $detail) @if ($detail->order_id == $order->id)
  • {{ $detail->product_name }} x{{ $detail->quantity }}
  • @endif @endforeach

    {{ __('text.Total Price') }}: ৳{{ $order->subtotal }}

    {{ __('text.Order Status') }} @if ($order->status == 1) Processing @elseif ($order->status == 2) Shipped @elseif ($order->status == 3) Delivered @else Failed @endif
    @endforeach

    {{ __('text.The following addresses will be used on the checkout page by default') }}

    {{ __('text.Shipping Address') }}

    @csrf @method('PUT')
    @error('address') {{ $message }} @enderror
    @error('city') {{ $message }} @enderror
    @error('country') {{ $message }} @enderror
    @error('postcode') {{ $message }} @enderror
    @csrf
    @error('old_password') {{ $message }} @enderror
    @error('password') {{ $message }} @enderror
    @endsection