@if (!empty($popupBannerImage)) @if (!file_exists(storage_path('app/public/advertisement-images/' . $popupBannerImage->file_name))) @php $popupBannerImageUrl = url('public/storage/advertisement-images/' . $popupBannerImage->file_name); @endphp @else @php $popupBannerImageUrl = url('storage/advertisement-images/' . $popupBannerImage->file_name); @endphp @endif @else @php $popupBannerImageUrl = asset('images/popup.jpg'); @endphp @endif @if(!empty($popupBannerImage)) @else @endif