@extends('backend.layouts.app') @section('title') Danh sách bài viết @endsection @section('content')
@include('backend.layouts.content-header', ['page' => 'Danh sách bài viết'])
@includeIf('backend.components.notification') @can('add_slides') @includeIf('backend.components.button.add', ['route' => route('news.add')]) @endcan
@foreach($data as $news) @endforeach
{{ __('label.image') }} {{ __('label.title') }} {{ __('label.news.author') }} {{ __('label.status.status') }} {{ __('label.created_at') }} {{ __('label.action.action') }}
{{ $news->title }} {{ $news->author }} status == 1 ? 'checked' : '' }} /> {{ \Carbon\Carbon::parse($news->created_at)->format('d/m/Y h:i:s') }} @include('backend.components.button.edit', ['route' => route('news.edit', $news->id)]) @include('backend.components.button.delete', ['route' => route('news.delete'), 'id' => $news->id])

{{ $data->links() }}
@endsection @push('css') @endpush @push('js') @endpush