@extends('layouts.app', ['class' => 'g-sidenav-show bg-gray-100']) @section('content') @include('layouts.navbars.auth.topnav', ['title' => 'Dashboard'])
Ingredients Price Comparison

Note: Prices highlighted in green indicate the cheapest price.

@if (session('error')) @endif
@foreach ($companies as $company) @endforeach @foreach ($ingredients as $ingredient) @foreach ($companies as $company) @endforeach @endforeach
Ingredient Weight (kg) @if($company->photo_url) {{ $company->company_name }}
@endif Price (RM)
{{ $company->company_name }}
{{ $ingredient->ingredient_name }}
{{ $ingredient->ingredient_weight }}
@foreach ($ingredient->suppliers as $supplier) @if ($supplier->company_ID === $company->company_ID)
{{ $supplier->ingredient_price }}
@endif @endforeach
@include('layouts.footers.auth.footer')
@endsection