@extends('backend.layouts.app') @section('content')
Archive Orders
@foreach ($data as $orders) @php $items = json_decode($orders->items); $quantities = json_decode($orders->quantity); @endphp {{-- --}} {{-- --}} @endforeach
First Name Last Name Company Name Email Number Items Total Amount Payment Status Order Status Date Action
{{$orders->personalFirstname}} {{$orders->personalLastname}} {{$orders->personalCompanyname}} {{$orders->personalEmail}} {{$orders->personalNumber}} @if ($items && $quantities) @foreach ($items as $index => $item) {{ $item }} x {{ $quantities[$index] }}
@endforeach @endif
{{$orders->total_amount}} Status: {{$orders->payment_status}}
Method: {{$orders->payment}}
{{$orders->order_status}} {{ $orders->created_at->format('M d,Y') }}{{$orders->payment}} {{-- --}}
@endsection