@php
$files = json_decode($bug->attachment ?? '[]', true);
@endphp
@if(isset($files[0]) && $files[0] != '')
@php
$file = $files[0];
$ext = pathinfo($file, PATHINFO_EXTENSION);
@endphp
@if(in_array(strtolower($ext), ['mp4','mov','avi','webm']))
@else
 }})
@endif
@else
No Attachment
@endif