@extends('layouts.app') @section('css') @endsection @section('content') @php $resto = \App\Restaurants::find(\App\Helpers\CommonMethods::getRestuarantID()); $lang = $resto->default_lang; app()->setLocale($lang); if(session('app_lang') !==null){ $lang = session('app_lang'); app()->setLocale($lang); } $restuarant1 = $resto; $resto_metas = \App\Helpers\CommonMethods::getRestoMetas($restuarant1); $currency = isset($resto_metas['BUSSINESS_CCY'])?$resto_metas['BUSSINESS_CCY']:"IQD"; $business_type = isset($resto_metas['BUSSINESS_TYPE'])?$resto_metas['BUSSINESS_TYPE']:"Restaurants"; $business_type = trim($business_type); @endphp

Recipe

@if(isset($recipe)) Edit {!! $recipe->name !!} @else New Item @endif
@csrf

Product Basic Details

@php $c = []; if(isset($recipe)){ $c = $recipe->categories->pluck('category_id')->toArray(); // dump($c); } @endphp

    @if(isset($recipe)) status==1) checked @endif> @else @endif
    @if(isset($recipe)) show_recipe_main_price==1) checked @endif> @else @endif

Cover Image

main_images) && !empty($recipe->main_images->file_name)) style="width:90%; height:80%;background: url({!! $recipe->main_images->file_name !!})" @endif>
@if(isset($recipe) && isset($recipe->main_images) && !empty($recipe->main_images->file_name)) Remove Image @endif
@if($business_type=="ClothsStore") @php $sizes = []; $colors = []; $color_data = null; if(isset($recipe)){ $colors = \App\ClothOptions::where('product_id',$recipe->id)->where('type','color')->pluck('name')->whereNull('deleted_at')->toArray(); //dump($colors); $sizes = \App\ClothOptions::where('product_id',$recipe->id)->where('type','size')->pluck('name')->toArray(); $color_data = \App\ClothOptions::where('product_id',$recipe->id)->whereIn('type',['color','color_image'])->whereNull('deleted_at')->get(); } @endphp

Add Product Variations

@if(isset($color_data))
@foreach( $color_data as $color) @endforeach
@if($color->img_url!="") Delete
@endif
@endif

Product Gallery

@if( isset($recipe)) Upload Gallery @if($business_type=="Restaurants" || $business_type=="Florist" ) Add Extra Options @endif @endif
@if(isset($recipe) && isset($recipe->galleries))
@foreach($recipe->galleries as $gallery) @endforeach
@endif
@if($business_type=="Restaurants" || $business_type=="Florist") @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 !!} @if($option->name_arabic!="") ( {!! $option->name_arabic !!} ) @endif {!! $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 @endif @if(isset($recipe)) @if(isset($resto_metas['ENABLED_PRODUCT_FAQS']) && $resto_metas['ENABLED_PRODUCT_FAQS']=="Yes")

Product FAQs

Add FAQ
@if(isset($recipe->product_faqs) && $recipe->product_faqs->count() > 0)
@foreach($recipe->product_faqs as $faq)

{!! nl2br($faq->answer) !!}

|
@endforeach
@endif
@endif @endif
@if($business_type=="Restaurants" || $business_type=="Florist")
is_customized=="1") checked @endif name="is_customized" type="checkbox" />
@endif
@if( isset($recipe)) @endif @endsection @section('js') @endsection