@extends('layouts.master') @section('title','Post') @section('main-content')
@include('admin.section.flash_message')
@canany(['edit_post','delete_post']) @endcanany @forelse($posts as $key => $value) @canany(['edit_post','delete_post']) @endcanany @empty @endforelse
# Post Name Department Total Employee StatusAction
{{(($posts->currentPage()- 1 ) * (\App\Models\Post::RECORDS_PER_PAGE) + (++$key))}} {{ucfirst($value->post_name)}} {{ucfirst($value->department->dept_name)}}

{{($value->employees_count)}}

    @can('edit_post')
  • @endcan @can('delete_post')
  • @endcan

No records found!

{{$posts->appends($_GET)->links()}}
@include('admin.post.show')
@endsection @section('scripts') @include('admin.post.common.scripts') @endsection