@php $categories = App\Models\Category::with(['tour_packages']) ->where('status', 1) ->withCount('tour_packages') ->latest() ->get(); @endphp
{{ $category->tour_packages->count() }}