{{ __('inventory::modules.recipe.title') }}

{{ $recipes->total() }} {{ __('inventory::modules.recipe.stats.total_recipes') }}
@if(user_can('Create Recipe')) {{ __('inventory::modules.recipe.add_recipe') }} @endif
@foreach([ ['label' => __('inventory::modules.recipe.stats.total_recipes'), 'value' => $totalRecipes, 'icon' => 'M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2', 'color' => 'blue'], ['label' => __('inventory::modules.recipe.stats.main_courses'), 'value' => $mainCoursesCount, 'icon' => 'M12 4v16m8-8H4', 'color' => 'green'], ['label' => __('inventory::modules.recipe.stats.avg_prep_time'), 'value' => round($avgPrepTime) . ' ' . __('inventory::modules.recipe.preparation_time'), 'icon' => 'M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z', 'color' => 'yellow'] ] as $stat)

{{ $stat['label'] }}

{{ $stat['value'] }}

@endforeach
@if($search || $category || $sortBy !== 'menu_items.item_name') @endif
    @forelse($recipes as $recipe)
  • {{ $recipe['menu_item']['name'] }}

    {{ $recipe['menu_item']['name'] }}

    {{ $recipe['menu_item']['category'] }} ยท
    {{ $recipe['menu_item']['preparation_time'] ?? 0 }} {{ __('inventory::modules.recipe.preparation_time') }}
    @if(user_can('Update Recipe')) @endif @if(user_can('Delete Recipe')) @endif
    {{ __('inventory::modules.recipe.ingredients_required') }}
    {{ __('inventory::modules.recipe.ingredients_cost') }}: {{ currency_format($recipe['ingredients_cost'], restaurant()->currency_id) }}
    @foreach($recipe['ingredients'] as $ingredient)
    {{ $ingredient['name'] }} {{ $ingredient['quantity'] }}{{ $ingredient['unit'] }}
    @endforeach
  • @empty
  • {{ __('inventory::modules.recipe.no_recipes_found') }}

    {{ __('inventory::modules.recipe.get_started') }}

  • @endforelse
@if($recipes->hasPages())
{{ $recipes->links() }}
@endif
{{ $isEditing ? __('inventory::modules.recipe.edit_recipe') : __('inventory::modules.recipe.add_recipe') }} @lang('inventory::modules.recipe.delete_recipe') @lang('inventory::modules.recipe.confirm_delete') {{ __('app.cancel') }} {{ __('Delete') }}