@php ($headerOption = [ 'title' => "Chck proof requests", ]) @endphp @php function isImageLink($url) { $imageExtensions = ['jpg', 'jpeg', 'png', 'gif', 'bmp', 'webp']; return in_array(pathinfo($url, PATHINFO_EXTENSION), $imageExtensions); } $url1 = isset($disagreeMatchInfo->created_user_proof) ? $disagreeMatchInfo->created_user_proof : ''; $url2 = isset($disagreeMatchInfo->partipicant_proof) ? $disagreeMatchInfo->partipicant_proof : ''; @endphp @extends('admin.layouts.layout',$headerOption) @section('content')
Username: {{ $disagreeMatchInfo->created_user_name }}
Proof:
@if(isImageLink($url1))Username: {{ $disagreeMatchInfo->participant_name }}
Proof:
@if(isImageLink($url2))