@extends('world.layout') @section('title') {{ $recipe->name }} @endsection @section('meta-img') {{ $recipe->imageUrl ? $recipe->imageUrl : null }} @endsection @section('meta-desc') {!! substr(str_replace('"', ''', $recipe->description), 0, 69) !!} @endsection @section('content') {!! breadcrumbs(['World' => 'world', 'recipes' => 'world/recipes', $recipe->name => $recipe->idUrl]) !!}
@if ($recipe->imageUrl)
@endif

@if ($recipe->needs_unlocking) @if (Auth::check() && Auth::user()->hasRecipe($recipe->id)) @else @endif @else @endif {!! $recipe->name !!}

{!! $recipe->description !!}
@if ($recipe->is_limited)
Requirements
@endif
Ingredients
@foreach ($recipe->ingredients as $ingredient)
@include('home.crafting._recipe_ingredient_entry', ['ingredient' => $ingredient])
@endforeach
Rewards
@foreach ($recipe->reward_items as $type) @foreach ($type as $item)
@include('home.crafting._recipe_reward_entry', ['reward' => $item])
@endforeach @endforeach
@if (!$recipe->needs_unlocking || (Auth::check() && Auth::user()->hasRecipe($recipe->id))) @endif
@endsection