@extends('Web/App') @section('main-content') @include('Web/Layouts/minibanner')
@foreach ($facilities as $item) @php $is_even = $loop->index % 2 == 0; $reverse_col_sm = ''; if($is_even){ $reverse_col_sm = 'reverse_columns'; } @endphp

{{$item->name}}

@if(!$is_even) {{-- If it's even number Image first--}}
@if (count($item->media) > 1) {{-- Do carousel slideshow --}} @else @php $mediaitem = $item->media[0]; @endphp @if ($mediaitem->media_type == 'image') ... @else @endif @endif
@endif
Ullamco esse sunt et reprehenderit aute nulla sint. Consequat tempor labore magna tempor dolor eiusmod laboris enim duis incididunt enim velit non proident. In aute occaecat laborum quis elit minim ad sint exercitation consectetur. Ullamco mollit ut commodo anim esse nostrud nostrud in magna dolore enim exercitation ullamco. Adipisicing deserunt exercitation pariatur et quis ad. Aute sit cillum occaecat exercitation minim sunt non cillum reprehenderit laborum. Id nostrud incididunt laborum fugiat pariatur eiusmod eu anim duis officia.
@if($is_even) {{-- If it's even number Image second--}}
@if (count($item->media) > 1) {{-- Do carousel slideshow --}} @else @php $mediaitem = $item->media[0]; @endphp @if ($mediaitem->media_type == 'image') ... @else @endif @endif
@endif
{{--
--}} @endforeach
@endsection