@extends('layouts.contentNavbarLayout') @section('title', 'Food Dashboard') @section('vendor-style') @endsection @if (session('message')) @endif @section('content')
@foreach($products as $product)
@php $encrypted = Crypt::encryptString($product->id); @endphp
{{ $product['name'] }}
₱{{ $product['price'] }}
Buy Now
@csrf @method('post')
@endforeach
Recent Orders
@foreach($mypurchase as $purchase)
{{ $purchase->food }}
Quantity:
{{ $purchase->quantity }}
Price:
₱{{ $purchase->price }}
Total:
₱{{ $purchase->total }}
Status:
{{ $purchase->status }}
Order Date:
{{ $purchase->date_purchased }}
@endforeach
@endsection @section('vendor-script') @endsection