@extends('admin.master')

@section('title')
    SEO
@endsection

@section('content')

    <!--begin::Card-->
    <div class="card card-custom">
        <div class="card-header flex-wrap py-5">
            <div class="card-title">
                <h3 class="card-label">
                    SEO Lists
                </h3>
            </div>
        </div>

        <div class="card-body">
            <!--begin: Datatable-->
            @if ($seos->isEmpty())
                <p>No SEO found.</p>
            @else
                <table class="table table-separate table-head-custom table-checkable" id="kt_datatable1">
                    <thead>
                        <tr>
                            <th></th>
                            <th>ID</th>
                            <th>Page Name</th>
                            <th>SEO Title</th>
                            <th>Actions</th>
                        </tr>
                    </thead>

                    <tbody>
                        @foreach ($seos as $item)
                            <tr>
                                <td></td>
                                <td>{{ $item->id }}</td>
                                <td>{{ ucfirst($item->page_name) }}</td>
                                <td>{{ $item->seo_title }}</td>
                                <td>
                                    <span style="display: inline-block;">
                                        <a href="{{ route('seos.edit', $item->page_name) }}" class="btn btn-sm btn-clean btn-icon btn-icon-md" title="Edit"><i class="la la-edit"></i></a>
                                    </span>

                                </td>
                            </tr>
                        @endforeach
                    </tbody>

                </table>
            @endif
            <!--end: Datatable-->
        </div>
    </div>
@endsection
