-
@foreach($data as $data_index => $single_data)
@php
$total_count_data = Songsubmission::join('songsubmission_to_performer as stp','stp.songsubmissionID','=','songsubmission.id')->join('performer as pf','pf.id','=','stp.performerID')->join('topic as t','songsubmission.topicID','=','t.id')->join('book as b','b.id','=','t.bookID')->where('stp.performerID',$single_data->id)->where('songsubmission.active','Y')->select('t.*')->orderBy('t.name','asc')->get();
@endphp
@if(count($total_count_data) > 0)
- {{$single_data->name}} ({{count($total_count_data)}}) @endif @endforeach