@if (Auth::user()->role == 'admin' || Auth::user()->role == 'teacher') @endif @if (!empty($data)) @php $no = 1; @endphp @foreach ($data as $row) @if (Auth::user()->role == 'admin' || Auth::user()->role == 'teacher') @endif @endforeach @else @endif
No Line of InquiryAction
{{$no++}} {{$row->line_inquiry}} 
No data available in table