@if (isset($document->data['acf']['photo_of_yourself'])) @php $imageUrl = ''; try { $response = Http::get( 'https://maldivesdeclarationform.com/wp-json/wp/v2/media/' . $document->data['acf']['photo_of_yourself'], ); $response = json_decode($response->body()); $imageUrl = $response->link; } catch (\Exception $e) { } @endphp Photo @endif