@extends('layout.app')


@section('content')
    <div class="mt-2 card">
        <div class="card-body">
            <div class="table-responsive">
                <table id="dataTable" class="table table-bordered">
                    <thead>
                        <tr>
                            <th>
                                ID
                            </th>
                            <th class="text-center">
                                Name
                            </th>

                        </tr>
                    </thead>
                    <tbody>

                        @foreach ($departmants as $departmant)
                            <tr>
                                <td class="text-center">
                                    {{ $departmant->id }}
                                </td>
                                <td class="text-center">
                                    {{ $departmant->name }}
                                </td>

                            </tr>
                        @endforeach
                    </tbody>
                </table>
            </div>

        </div>
    </div>
@endsection
