@extends('layouts.main.app') @section('head') @include('layouts.main.headersection',[ 'title'=> __('Pages'), 'buttons'=>[ [ 'name'=>' '.__('Create a page'), 'url'=>route('admin.page.create'), ] ] ]) @endsection @section('content')
{{ $totalPosts }}

{{ __('Total Pages') }}

{{ $totalActivePosts }}

{{ __('Active Pages') }}

{{ $totalInActivePosts }}

{{ __('Inactive Pages') }}

{{ __('Pages') }}

@foreach($pages ?? [] as $page) @endforeach
{{ __('Title') }} {{ __('Url') }} {{ __('Status') }} {{ __('Created At') }} {{ __('Action') }}
{{ Str::limit($page->title,50) }} {{ Str::limit(url('page/'.$page->slug),100) }} {{ $page->status == 1 ? __('Active') : __('Draft') }} {{ $page->created_at->format('F-d-Y') }}
@if(count($pages) == 0)
{{ __('!Opps no records found') }}
@endif
@endsection