
@extends('app.admin.layout.layout')
@section('title',__('All blogs'))
@section('content')
    <style>
        .form-control{
            border-radius: 10px;
            border: 1px solid #7b7bff;
            box-shadow: rgba(196, 40, 82, 0.35) 0px 5px 15px;        }
        .form-label{
            font-family: "Helvetica Neue", "Helvetica", "Arial", sans-serif;
        }
        .card{
            margin: 20px;
            border-radius: 15px;
            box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
        }
    </style>
    <div class="card">
        <div class="card-header d-flex justify-content-between align-items-center" style="background-color: #ff2a0e !important">
            <h5 class="m-0" style="color: white">@lang('All blogs')</h5>
            <a class="btn btn-secondary" href="{{route('admin:blogSettings.create')}}">@lang('Add blog')</a>
        </div>
        <div class="widget-content br-8">
            <table class="table table-striped dt-table-hover">
                <thead>
                <tr>
                    <th>@lang('Name Az')</th>
                    <th>@lang('Name Ru')</th>
                    <th>@lang('Name En')</th>
                    @canany(['edit blogSetting','destroy blogSetting'])
                        <th class="text-center">@lang('Options')</th>
                    @endcanany
                </tr>
                </thead>
            </table>
        </div>
    </div>
@endsection
@canany(['edit blogSetting','destroy blogSetting'])
    <x-admin.datatable.server-side
        columns="[
    {data:'name_az'},
    {data:'name_ru'},
    {data:'name_en'},
    {data:'options',sortable:false}]"
        :url="route('admin:blogSettings.ajax')"/>
@else
    <x-admin.datatable.server-side
        columns="[
    {data:'name_az'},
    {data:'name_ru'},
    {data:'name_en'},]"
        :url="route('admin:blogSettings.ajax')"/>
@endcanany

