@extends('layouts.app') @section('css') @endsection @section('content')
@if(isset($recipe)) Edit {!! $recipe->name !!} @else New Recipe @endif
@csrf

Cover Image

main_images) && !empty($recipe->main_images->file_name)) style="background: url({!! $recipe->main_images->file_name !!})" @endif>
@if(isset($recipe) && isset($recipe->main_images) && !empty($recipe->main_images->file_name)) Remove Image @endif
@php $c = []; if(isset($recipe)){ $c = $recipe->categories->pluck('category_id')->toArray(); } @endphp
@if(isset($recipe)) show_recipe_main_price==1) checked @endif> @else @endif
@if(isset($recipe) && isset($recipe->galleries))
@foreach($recipe->galleries as $gallery) @endforeach
@endif
@if(isset($recipe->extra_options) && $recipe->extra_options->count() > 0)

Extra Options


@foreach($recipe->extra_options as $option) @endforeach
Option Name Price Items Is Mandatory?
{!! $option->name !!} {!! $option->price !!} @if(isset($option->extra_option_items) && $option->extra_option_items->count() > 0) {!! $option->extra_option_items->count() !!} @endif @if(isset($option->extra_option_items) && $option->extra_option_items->count() > 0) is_mandatory==1) checked @endif value="" data-id="{!! $option->id !!}" /> @if($option->is_mandatory==1) User can select {!! $option->mandatory_amount !!} items must @endif @endif
@endif
is_customized=="1") checked @endif name="is_customized" type="checkbox" />
status=="1") checked @endif name="status" type="checkbox" />
Save @if( isset($recipe)) Upload Gallery Add Extra Options @endif

Recipe

@if( isset($recipe)) @endif @endsection @section('js') @endsection