@php $host = app()->environment('local') ? "public" : "s3"; @endphp @extends('backend-template') @section('content')

Sectors

@foreach ($adsCategories as $cat) @php if ($cat->image_name) { $imagePath = Storage::disk($host)->has('home_page/' . $cat->image_name) ? imagePath('home_page/' . $cat->image_name) : ''; } @endphp @endforeach
Sector Name Image Item id Description Home page heading Home page description Action
{!! $cat->name !!} @if ($cat->image_name) @endif {!! $cat->image_item_id !!} {!! $cat->description !!} {!! $cat->home_page_heading !!} {!! $cat->home_page_description !!} Edit description

Edit home page heading

Edit home page description

Set image {!! Form::open([ 'url' => route('sectorDeleteImage', $cat->id), 'method' => 'delete']) !!} {!! Form::close() !!}
@include('blocks.modals.sectors_description') @include('blocks.modals.sectors_home_page_heading') @include('blocks.modals.sectors_home_page_description') @include('blocks.modals.sectors_custom_item_image') @stop @section('js_functions') my_main.edit_sector_description(); my_main.set_sector_custom_item_image(); @stop