HEX
Server: nginx/1.18.0
System: Linux test-ipsremont 5.4.0-214-generic #234-Ubuntu SMP Fri Mar 14 23:50:27 UTC 2025 x86_64
User: ips (1000)
PHP: 8.0.30
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //var/www/quadcode-jobs/resources/views/site/blocks/map.blade.php
@php use App\Models\Location;use App\Repositories\OfficeRepository; @endphp
<section class="app-section map">
    <div class="container">
        <aside class="map__coords js-map-links">
            <aside class="map__coords js-map-links">
                @foreach(OfficeRepository::getOffices() as $office)
                    @php /** @var Location $office */ @endphp
                    @php
                        if (empty($office->map_coords)) {
                            continue;
                        }
                        [$x, $y] = explode(',', $office->map_coords);

                        // TODO Костыль надо хранить в базе
                        $class = in_array($office->title, ['London', 'Limassol', 'Gibraltar']) ? 'map__coords-city--left' : '';
                    @endphp
                    <a class="map__coords-city {{ $class }}" style="--x-coord: {{ $x }}; --y-coord: {{ $y }};" href="{{ route('office', [$office->slug]) }}" rel="noopener">
                        <img src="{{ asset('/files/flags/' . $office->title . '.svg') }}" alt="map img" class="map__coords-city-img">
                        <span class="map__coords-city-marker"></span>
                        <div class="map__coords-city-inner">
                            <span class="map__coords-city-name">{{ $office->title }}</span>
                            <div class="map__coords-city-count {{ $office->count_positions ? '' : 'map__coords-city-count--disable' }} ">
                                <span class="map__coords-city-count-text">{{ $office->count_positions }}</span>
                            </div>
                        </div>
                    </a>
                @endforeach
            </aside>
        </aside>
        <div class="app-section__inner">
            <header class="app-section__header">
                <h2>6 offices, 700+ employees</h2>
            </header>
        </div>
        <div class="map__media">
            <img src="{{ asset('/media/images/map_2x.png?v=2') }}" style="width: 100%; height: 100%;" alt="world map">
        </div>
    </div>
</section>