@extends('admin.layouts.app') @section('panel') @if (@$section->content)
@csrf
@php $imgCount = 0; @endphp @foreach ($section->content as $k => $item) @if ($k == 'images') @php $imgCount = collect($item)->count(); @endphp @foreach ($item as $imgKey => $image)
@endforeach
@push('divend')
@endpush @else @if ($k != 'images') @if ($item == 'icon')
@elseif($item == 'textarea')
@elseif($item == 'textarea-nic')
@elseif($k == 'select') @php $selectName = $item->name; @endphp
@else
@endif @endif @endif @endforeach @stack('divend')
@endif @if (@$section->element)
@if (@$section->element->images) @endif @foreach ($section->element as $k => $type) @if ($k != 'modal' && $k != 'seo') @if ($type == 'text' || $type == 'icon') @elseif($k == 'select') @endif @endif @endforeach @forelse($elements as $data) @if (@$section->element->images) @php $firstKey = collect($section->element->images)->keys()[0]; @endphp @endif @foreach ($section->element as $k => $type) @if ($k != 'modal' && $k != 'seo') @if ($type == 'text' || $type == 'icon') @if ($type == 'icon') @else @endif @elseif($k == 'select') @php $dataVal = @$section->element->$k->name; @endphp @endif @endif @endforeach @empty @endforelse
@lang('SL')@lang('Image'){{ __(keyToTitle($k)) }}{{ keyToTitle(@$section->element->$k->name) }}@lang('Action')
{{ $loop->iteration }}
image
@php echo @$data->data_values->$k; @endphp{{ __(@$data->data_values->$k) }}{{ @$data->data_values->$dataVal }}
@if(@$section->element->seo) @lang('SEO Setting') @endif @if ($section->element->modal) @php $images = []; if (@$section->element->images) { foreach ($section->element->images as $imgKey => $imgs) { $images[] = frontendImage($key,@$data->data_values->$imgKey,@$section->element->images->$imgKey->size); } } @endphp @else @lang('Edit') @endif
{{ __($emptyMessage) }}
{{-- Add METHOD MODAL --}} {{-- Update METHOD MODAL --}} @endif {{-- if section element end --}} @endsection @push('breadcrumb-plugins')
@if (@$section->element) @if ($section->element->modal) @lang('Add New') @else @lang('Add New') @endif @endif @if (!empty($templates))
@csrf
@endif @if(!@$section->hide_builder) @endif
@endpush @push('style-lib') @endpush @push('script-lib') @endpush @push('script') @endpush