@extends('layout.app')


@section('content')

    <div class="card">
        <div class="card-body">
            <div class="table-responsive">
                <table id="dataTable" class="display">
                    <thead class="bg-gray-50">
                        <tr>
                            <th scope="col">
                                ID
                            </th>
                            <th scope="col">
                                Manager
                            </th>
                            <th scope="col">
                                POP
                            </th>
                            <th scope="col">
                                Area
                            </th>
                            <th scope="col">

                            </th>
                        </tr>
                    </thead>
                    <tbody>
                        @foreach ($allArea as $item)
                            <tr>
                                <td>
                                    {{ $item->id }}
                                </td>
                                <td>
                                    {{ $item->reseller->name ?? '' }}
                                </td>
                                <td>
                                    {{ $item->pop->popname ?? '' }}
                                </td>
                                <td>
                                    {{ $item->area }}
                                </td>
                                <td>
                                    <a href="{{ route('reseller-area.edit', $item->id) }}"
                                        class="btn btn-primary pull-right">Edit</a>
                                </td>
                            </tr>
                        @endforeach
                    </tbody>
                </table>
            </div>
        </div>
        <div class="card-footer">
            {{ $allArea->links() }}

        </div>
    </div>







@endsection
