@extends('admin.master') @section('content')
@if($flag == 'advocate')

{{$heading}}

@php $sno = 1; @endphp @foreach($data as $key => $advocate) @endforeach
SNo. Advocate Name Enrollment No./Date eMail Mobile Enrolled Bar Council
{{ $data->firstItem() + $key }} {{ $advocate->title.' '.$advocate->user_name }}{{$advocate->is_senior ? ', Senior' : ''}} {{ $advocate->enrolment_number.' / '.date('d-m-Y', strtotime($advocate->enrolment_date)); }} {{ $advocate->email}} {{ $advocate->mobile}} {{ $advocate->org_name }}
@elseif($flag == 'council')

{{$heading}}

@php $sno = 1; @endphp @foreach($data as $key => $council) @endforeach
SNo. State Bar Councils Name Total Enrolled Advocates
{{ $data->firstItem() + $key }} {{ $council->org_name }} {{ $council->total_advocate }}
@elseif($flag == 'association')

{{$heading}}

@php $sno = 1; @endphp @foreach($data as $key => $asso) @endforeach
SNo. Association Name
{{ $data->firstItem() + $key }} {{ $asso->org_name }}
@endif
@endsection