@extends('layouts.reports')
@section('content')
<div>
    <h4 style="font-size:12px;text-align:center;">{{$title}}</h4>
</div>

<table class="table">

    <tr>
        <th>S/N</th>
        <th>Name</th>
        <th>Gender</th>
        <th>Town</th>
        <th>Phone</th>
        <th>Email</th>
        <th>Address</th>
        <th>Qualification</th>
        <th>Occupation</th>
        <th>Membership</th>
    </tr>
    @foreach ($members as $item)
    <tr>
        <td>{{$loop->index+1}}</td>
        <td>{{$item->title}}{{$item->first_name}} {{$item->middle_name}} {{$item->last_name}}</td>
        <td>{{$item->gender}}</td>
        <td>{{$item->town}}</td>
        <td>{{$item->phone}}</td>
        <td>{{$item->email}}</td>
        <td>{{$item->address}}</td>
        <td>{{$item->qualification}}</td>
        <td>{{$item->occupation}}</td>
        <td>{{$item->membership_number}}</td>
    </tr>

    @endforeach
   
</table>
@endsection