@php session_start(); if(!isset($_SESSION['httpref'])) { $_SESSION['httpref'] = $_SERVER['HTTP_REFERER'] ?? null; } if(isset($_GET['i'])) { $_SESSION['ref'] = $_GET['i']; } @endphp @if(session('modal')) @endif