@php $data = \App\Models\GeoDistination::where('active', 1)->get(); $geo_distinations = [ 'IQ-BB' => 'Babil', 'IQ-AN' => 'Al-Anbar', 'IQ-DI' => 'Diyala', 'IQ-SU' => 'As-Sulaymaniyah', 'IQ-WA' => 'Wasit', 'IQ-MA' => 'Maysan', 'IQ-DQ' => 'Dhi-Qar', 'IQ-QA' => 'Al-Qadisiyah', 'IQ-MU' => 'Al-Muthannia', 'IQ-BA' => 'Al-Basrah', 'IQ-BG' => 'Baghdad', 'IQ-KA' => 'Karbala', 'IQ-NA' => 'An-Najaf', 'IQ-SD' => 'Sala ad-Din', 'IQ-NI' => 'Ninawa', 'IQ-AR' => 'Arbil', 'IQ-KI' => 'Kirkuk', 'IQ-DA' => 'Dihok', ]; @endphp
{{ $values['heading']['subtitle'] }}

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

@php $items = collect($data); @endphp
@foreach ($items->chunk((int) ceil($items->count() / 2) ?: 1) as $chunk)
    @foreach ($chunk as $i => $row)
  • {{ $row->{'name_' . $locale} }}
  • @endforeach
@endforeach
Iraq Map {{-- --}}
{{-- @php foreach ($data as $row) { $brands_raw_2 = []; foreach ($row->brands_raw as $i => $b) { $logos = array_values($b->getFiles('logo')->toArray()); $logo = isset($logos[0]) ? Utils::resizeBaseOnHeightImg(public_path($logos[0]['file']), 50) : ''; $link = url($b->seo_by_locale($locale)->slug); $b['logo'] = $logo; $b['link'] = $link; $brands_raw_2[] = $b->toArray(); } $row['brands_raw_2'] = $brands_raw_2; } @endphp --}} {{-- @push('scripts') @endpush --}}