@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')

Pick a Winner

First player

Username: {{ $disagreeMatchInfo->created_user_name }}

Proof:

@if(isImageLink($url1)) Image @else Visit Link @endif
Second player

Username: {{ $disagreeMatchInfo->participant_name }}

Proof:

@if(isImageLink($url2)) Image @else Visit Link @endif


Delete match {!! html()->form('DELETE', route( 'disagreeMatches' . '.destroy', $disagreeMatchInfo->id ))->attributes([ 'style' => 'display:inline', 'id' => 'delete-form-' . $disagreeMatchInfo->id ])->open() !!} {!! html()->form()->close() !!}
@include('admin.components.pagination') @endsection