@php $genericRepository = new \App\Repositories\GenericRepository('Brand'); $data = $genericRepository->get_latest(2); @endphp @if (count($data))
@if ($values['heading']['subtitle'] ?? '' != '') {{ $values['heading']['subtitle'] }} @endif @if ($values['heading']['title'] ?? '' != '')

{{ $values['heading']['title'] }}

@endif @if ($values['heading']['brief'] ?? '' != '')

{!! $values['heading']['brief'] !!}

@endif
@foreach ($data as $row) @php $files = array_values($row->getFiles('images')->toArray()); $photo = isset($files[0]) ? Utils::cropImg(public_path($files[0]['file']), 400, 400) : ''; $logos = array_values($row->getFiles('logo')->toArray()); $logo = isset($logos[0]) ? Utils::resizeImg(public_path($logos[0]['file']), 150, 150) : ''; $link = url($row->seo_by_locale($locale)->slug); @endphp @endforeach
@endif {{-- @php $genericRepository = new \App\Repositories\GenericRepository('Brand'); $data = $genericRepository->get_latest(2); @endphp @if (count($data)))
@if ($values['heading']['subtitle'] ?? '' != ''){{ $values['heading']['subtitle'] }}@endif @if ($values['heading']['title'] ?? '' != '')

{{ $values['heading']['title'] }}

@endif {!! Utils::parse_tinymce($values['heading']['brief']) !!}
@foreach ($data as $row) @php $files = array_values($row->getFiles('photos')->toArray()); $photo = isset($files[0]) ? Utils::cropImg(public_path($files[0]['file']), 400, 400) : ''; $logos = array_values($row->getFiles('logo')->toArray()); $logo = isset($files[0]) ? Utils::resizeImg(public_path($logos[0]['file']), 150, 50) : ''; @endphp
ServiceImage

{{ $row->name }}

@endforeach
Shape
Shape
Shape
Shape
Shape
Shape
@endif --}}