@php
    if (isset($staff->image)) {
        $image = json_decode($staff->image);
        $image = str_replace('uploads/staffs/', 'images/', $image->original_image ?? '');
    } else {
        $image = '';
    }
@endphp

<div class="user-info-panel d-flex gap-12 align-items-center">
    <div class="user-img">
        <img src="{{getFileLink('80x80', $image)}}" alt="{{$staff->first_name . ' ' . $staff->last_name}}">
    </div>
</div>