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

&nbsp;
<table class="table" style="width:100%;">

    <tr>
        <th>S/N</th>
        <th>Name</th>
        <th>Location</th>
        <th>Telephone</th>
        <th>Email</th>
        <th>Address</th>
        <th>Institution</th>
        <th>Occupation</th>
        <th>Membership</th>
        <th>Paper</th>
        <th>Date</th>
    </tr>
    @foreach ($online_services as $item)
    <tr>
        <td>{{$loop->index+1}}</td>
        <td>{{$item->title}}{{$item->full_name}}</td>
        <td>{{$item->town}}-{{$item->country}}</td>
        <td>{{$item->telephone}}</td>
        <td>{{$item->email}}</td>
        <td>{{$item->mailing}}</td>
        <td>{{$item->institution}}</td>
        <td>{{$item->occupation}}</td>
        @if($item->membership_number == "")
        <td>--</td>
        @else
        <td>{{$item->membership_number}}</td>
        @endif
        @if($item->paper_title == "")
        <td>--</td>
        @else
        <td>{{$item->paper_title}}</td>
        @endif
        <td>{{Carbon\Carbon::parse($item->created_at)->format('d-m-Y')}}</td>

    </tr>

    @endforeach
   
</table>
@endsection