@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)
@if(@$section->content->images->$imgKey->size) @lang('Recomended size:'): {{@$section->content->images->$imgKey->size}} @lang('px'). @endif
@endforeach
@push('divend')
@endpush @else @if($k != 'images') @if($item == 'icon')
@elseif($item == 'textarea')
@elseif($item == 'textarea-rich')
@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') @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') @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}} @php echo @$data->data_values->$k; @endphp{{__(@$data->data_values->$k)}}{{@$data->data_values->$dataVal}}
@if($section->element->modal) @php $images = []; if(@$section->element->images){ foreach($section->element->images as $imgKey => $imgs){ $images[] = getImage('assets/images/frontend/' . $key .'/'. @$data->data_values->$imgKey,@$section->element->images->$imgKey->size); } } @endphp @else @endif
{{ __($emptyMessage) }}
{{-- Add METHOD MODAL --}} {{-- Update METHOD MODAL --}} @push('breadcrumb-plugins') @if($section->element->modal) @lang('Add New') @else @lang('Add New') @endif @endpush @endif {{-- if section element end --}} @endsection @push('style-lib') @endpush @push('script-lib') @endpush @push('script') @endpush