@extends('layouts.admin') @section('content') Settings @include('settings.left-bar') @include('include.flash-message') @include('include.errors') @csrf @php $index=0; @endphp @foreach ($blocks as $block) @php $index++; @endphp {{ 'Section '.$index.' - '.Str::ucfirst($block->type) }} Remove Block Are you sure to remove this block? Title Description {{ $block->description }} Select Block Type --- Not Selected --- type=='banner') ? 'selected' : '' !!}>Banner type=='list') ? 'selected' : '' !!}>List Select List --- Not Selected --- list=='packages') ? 'selected' : '' !!}>Packages list=='items') ? 'selected' : '' !!}>Items Select Banner @php $blockBanners=$block->banners; $blockBannersArray=$blockBanners->pluck('id')->toArray() @endphp @if ($banners->count() > 0) @foreach ($banners as $key=>$item) id,$blockBannersArray) ? 'checked' : '' !!}> @endforeach @endif @error('banner') {{ $message }} @else @enderror Select Packages @php $blockPackages=$block->block_packages; $blockPackagesArray=$blockPackages->pluck('id')->toArray() @endphp @if ($packages->count() > 0) @foreach ($packages as $key=>$item) id,$blockPackagesArray) ? 'selected' : '' !!}> {{ $item->title }} @endforeach @endif @error('package') {{ $message }} @else @enderror Select Items @php $blockItems=$block->block_items; $blockItemsArray=$blockItems->pluck('id')->toArray() @endphp @if ($items->count() > 0) @foreach ($items as $key=>$item) id,$blockItemsArray) ? 'selected' : '' !!}> {{ $item->title }} @endforeach @endif @error('item') {{ $message }} @else @enderror @endforeach @endsection
Are you sure to remove this block?