@extends('backend.global.layout') @section('content') @include('backend.global.notifications')
@include('backend.global.header-card') @include('backend.global.validation')
{!! Form::open(['url' => route('manager.pages.update', $page->id), 'method' => 'PUT', 'class' => 'form fv-plugins-bootstrap5 fv-plugins-framework', 'enctype' => 'multipart/form-data' ]) !!}
@if($show_brand_inputs && $page_brand instanceof \App\Models\PageBrands\PageBrands) {{--
--}} {{-- Logótipo--}} {{--
--}} {{--
--}} {{--
--}} {{-- --}} {{--
--}} {{--
--}} {{-- @if(isset($page_brand->logo_uid))--}} {{-- @include('backend.global.show-file-modal', ['route' => route('page_brands.logo', ['uid' => $page_brand->logo_uid, 'type' => 'brand'] ), 'input_name' => 'image_logo', 'title' => 'Logótipo'])--}} {{-- @endif--}} {{--
--}} {{--
--}}
@if(isset($page_brand->banner_uid)) @include('backend.global.show-file-modal', ['route' => route('page_brands.banner', ['uid' => $page_brand->banner_uid, 'type' => 'brand'] ), 'input_name' => 'banner', 'title' => 'Banner']) @endif
order ? 'checked' : '' }} >
@endif
visible ? 'checked' : '' }} name="visible">
@if($show_brands)

Marcas

{{-- existing selected brands--}} @foreach($page->brands as $page_brand)
{{$page_brand->brand->name}}
@endforeach {{-- end existing selected brands--}} {{-- brands selector--}}
@endif

SEO

{!! Form::close() !!}

BLOCOS DA PÁGINA

@role('super') @endrole
@include('backend.pages.snippets.components.type_selector')
@foreach($page->sections as $k=>$section) @if(isset($section->components()->first()->type))

@method('PUT') @csrf
@if($section->components()[0]->type == 2 || $section->components()[0]->type == 3 || $section->components()[0]->type == 4 || $section->components()[0]->type == 5 || $section->components()[0]->type == 6 || $section->components()[0]->type == 8 || $section->components()[0]->type == 10 || $section->components()[0]->type == 12 || $section->components()[0]->type == 14)
@endif
visible ? 'checked' : '' }} name="section[{{ $k }}][visible]">
@role('super')
@endrole
@foreach($section->components() as $component) @if($component->getSpecificComponent() == null)