@foreach($categories as $category)
    <div class="list-group-item">
        <a href="#" class="cat-open"><i class="fa fa-chevron-down" aria-hidden="true"></i> {{ $category->name }}</a>
        <div class="sub-cats indent" style="display: none;">
            @foreach($category->subs as $subs_category)
            <div class="checkbox">
                <label>
                    <input type="checkbox" name="categories[]" value="{{ $subs_category->id }}"> {{ $subs_category->name }}
                </label>
            </div>
            @endforeach
        </div>
    </div>
@endforeach