AllItem::leftJoin('items',function($join) use ($case){
$join->on('items.classid','=','all_items.classid');
$join->where('items.case_id','=',$case->id);
})->orderBy('items.created_at','desc')->select('all_items.*')->paginate(10);