@if(auth()->check() && auth()->user()->role == 'admin')
@php
try {
preg_match('/^(.*?)\s?\((.*?)\)$/', $message, $matches);
$outside = $matches[1];
$inside = $matches[2];
} catch (\Throwable $th) {
$outside = $message;
$inside = '';
}
@endphp
{{$outside}}
{{$inside}}
@php dump($error); @endphp
@endif