{{ __('My Recipes') }}

@can('create', App\Models\Recipe::class) {{ __('New Recipe') }} @else {{ __('Upgrade') }} @endcan
@if (session('status'))
{{ session('status') }}
@endif @if (session('limitReached'))
{{ __("You've reached your free plan's recipe limit. Upgrade to add more.") }} {{ __('View pricing') }}
@endif
{{ __('Filter') }} @if (request()->anyFilled(['name', 'category_id', 'tag_id', 'date_from', 'date_to'])) {{ __('Clear filters') }} @endif
@forelse ($recipes as $recipe)
@if ($recipe->media->isNotEmpty()) {{ $recipe->name }} @endif
{{ $recipe->name }}

{{ $recipe->category->name }} @if ($recipe->public) {{ __('Public') }} @endif

@if ($recipe->tags->isNotEmpty())
@foreach ($recipe->tags as $tag) {{ $tag->name }} @endforeach
@endif
@can('update', $recipe) {{ __('Edit') }} @endcan @can('delete', $recipe)
@csrf @method('DELETE')
@endcan
@empty

{{ request()->anyFilled(['name', 'category_id', 'tag_id', 'date_from', 'date_to']) ? __('No recipes match your filters.') : __('No recipes yet.') }}

@endforelse
{{ $recipes->links() }}