@foreach($items as $item)
@php 
    $logitem = $logtypes[$item['upltype']]; 
    $upldata = json_decode($item['upldata'],true);
    $message = $logitem['message'];
    if($logitem['veriables']){
        foreach($logitem['veriables'] as $veriable){
            $message = str_replace('{'.$veriable.'}',$upldata[$veriable],$message);
        }
    }
@endphp
<tr>
    <td class="text-center align-middle">{{ $item['uplid'] }}</td>
    <td class="text-center align-middle"><a href="{{ beGetRoute('admin.order.show',['upid' => $item['upid']]) }}">{{ $item['upname'] }} - {{ $item['uptag'] }}</a></td>
    <td class="text-center align-middle">{{ $message }}</td>
    <td class="text-center align-middle">{{ $item['uplipaddress'] }}</td>
    <td class="text-center align-middle">{{ beSpecialTime($item['upldateline']) }}</td>
</tr>
@endforeach