@extends('admin.template.master') @section('stylesheets') {!! Html::style('assets/admin/bower_components/select2/dist/css/select2.min.css') !!} {!! Html::style('assets/admin/plugins/treeview/treeview.css') !!} @endsection @section('title') Content update Home Content Update @endsection @section('main-content') @if(Session::has('message')) × {{Session('message')}} @endif Edit for : {{ $content->slug == '/' ? 'Home' : $content->slug }} Back @csrf @if($content->slug != "/") Slug Type Select Slug Type Category Store Offer Brand Slug {{-- --}} {{$content->slug}} {{-- Select Category Slug @foreach ($category_slugs as $slug) slug == 'category/'.$slug->category_slug) selected @endif>category/{{$slug->category_slug}} @endforeach @foreach ($store_slugs as $slug2) slug == 'store/'.$slug2->offer_name_slug) selected @endif>store/{{$slug2->offer_name_slug}} @endforeach --}} @endif Content {!! $content->content !!} Video Table Title # Product {{-- {{dd($content->product_id)}} --}} {{-- {{dd($content_Tables[0]->product_id != NULL ? "Block1" : "block2")}} --}} @if(isset($contentData->product_id)) @php $rowCount = count($content_Tables); $x = 1; @endphp @foreach($content_Tables as $table) {{$x++}} Select Product {{$table->product->product_code_inv ?? ''}} {{$table->product->product_name ?? ''}} @endforeach @else @php $rowCount = 5; @endphp 1 Select Product 2 Select Product 3 Select Product 4 Select Product 5 Select Product @endif Add More Status Select Status is_active == 'active' ? 'selected' : ''}}>Active is_active == 'inactive' ? 'selected' : ''}}>Inactive Submit @endsection @section('javascripts') {!! Html::script('assets/admin/bower_components/select2/dist/js/select2.full.min.js') !!} {{-- {!! Html::script('assets/admin/bower_components/ckeditor/ckeditor.js') !!} --}} {{-- {!! Html::script('assets/admin/ckeditor/ckeditor.js') !!} --}} @endsection