CROP INVENTORY LIST{{ $cropInvLists->count() }}
@foreach($cropInvLists as $cropInvList)
@php $variety_count = DB::table('crop_inventory_varieties')->where('crop_inventory_list_id', '=', $cropInvList->id)->get()->count();@endphp
{{--
--}}
{{$cropInvList->inventory_name}}
0) class="badge gradient-yellow" @elseif($variety_count == 0) style="display:none;" @endif>{{$variety_count}}
@endforeach
--}}
{{$cropInvList->inventory_name}}
0) class="badge gradient-yellow" @elseif($variety_count == 0) style="display:none;" @endif>{{$variety_count}}
@endforeach