Showing {{ $dishes->count() }} of {{ $dishes->total() }} dishes
@foreach($dishes as $dish)
@endforeach
@if($dishes->hasPages())
@if($dish->image_url)
@else
@endif
@if($dish->cooking_time)
{{ $dish->cooking_time }}m
@endif
@if($dish->cuisine)
{{ $dish->cuisine }}
@endif
{{ $dish->name }}
@if($dish->calories)
View Recipe
{{ $dish->calories }} calories
@endif
@if($dish->dish_type)
{{ $dish->dish_type }}
@endif
@if($dish->ingredients)
{{ Str::limit($dish->ingredients, 30) }}
@endif
@php
$currentPage = $dishes->currentPage();
$lastPage = $dishes->lastPage();
$startPage = max(1, $currentPage - 2);
$endPage = min($lastPage, $currentPage + 2);
if ($startPage > 1) {
$startPage = max(1, $currentPage - 1);
}
if ($endPage < $lastPage) {
$endPage = min($lastPage, $currentPage + 1);
}
@endphp
@if($startPage > 1)
1
@if($startPage > 2)
...
@endif
@endif
@for($page = $startPage; $page <= $endPage; $page++)
@if($page == $currentPage)
{{ $page }}
@else
{{ $page }}
@endif
@endfor
@if($endPage < $lastPage)
@if($endPage < $lastPage - 1)
...
@endif
{{ $lastPage }}
@endif
@if($dishes->onFirstPage())
Previous Page
@else
Previous Page
@endif
@if($dishes->hasMorePages())
Next Page
@else
Next Page
@endif
Page {{ $dishes->currentPage() }} of {{ $dishes->lastPage() }}
({{ $dishes->total() }} total dishes)
No dishes found
No dishes are available at the moment.
@if($dish->image_url)
@else
@endif
{{ $dish->name }}
@if($dish->cuisine) {{ $dish->cuisine }} @endifDish Information
@if($dish->cooking_time)
@endif
@if($dish->calories)
@endif
@if($dish->dish_type)
@endif
@if($dish->dish_complexity)
@endif
Cooking Time
{{ $dish->cooking_time }} minutes
Calories
{{ $dish->calories }}
Dish Type
{{ $dish->dish_type }}
Complexity
{{ $dish->dish_complexity }}
Ingredients
{{ $dish->ingredients }}
Cooking Instructions
{{ $dish->instructions }}