@extends('account/layout') @section('account')

Orders

@if(count(auth()->user()->orders) > 0) @foreach(auth()->user()->orders as $order) @endforeach
NoDateProductsStatus
{{$order->id}} date @foreach($order->lines as $line) {{$line->product->title}} * {{$line->qty}}
@endforeach
@switch($order->status) @case(\App\Models\Order::statusWaiting) Waiting payment @break @case(\App\Models\Order::statusPaid) Paid @break @endswitch
@else

No order

@endif
@stop