@php
use App\Models\mongo;
@endphp

<tr class="set-font-family" style="line-height:{{$body_line}};">
    <td width="100%">
        <span class="casetitle">ENDOSCOPE USED :</span>
        <span class="casetext">
            @foreach(isset($casedata->scope)?$casedata->scope:array() as $scope)
                @php
                    $sc = "";
                    $sc_u = (object) Mongo::table('tb_scope')->where('scope_id',(int) $scope)->first();
                    if(isset($sc_u->scope_name)){
                        $sc = @$sc_u->scope_name.' SN '.@$sc_u->scope_serial." [".@$sc_u->scope_model."]";
                    }else{
                        $sc = $scope;
                    }
                @endphp
                {!!$sc."<br>"!!}
            @endforeach
        </span>
    </td>
</tr>
