@extends('layouts.app') @push('pg_btn') @can('create-category') Create New Category @endcan @endpush @section('content')

All Categories

{!! Form::open(['route' => 'users.index', 'method'=>'get']) !!}
{{ Form::text('search', request()->query('search'), ['class' => 'form-control form-control-sm', 'placeholder'=>'Search users']) }}
{!! Form::close() !!}
@foreach($categories as $category) @endforeach
Name Added by Status Created at Action
{{$category->category_name}} {{$category->user->name}} @if($category->status) Active @else Disabled @endif {{$category->created_at->diffForHumans()}} @can('destroy-category') {!! Form::open(['route' => ['category.destroy', $category],'method' => 'delete', 'class'=>'d-inline-block dform']) !!} @endcan @can('update-category') @endcan @can('destroy-category') {!! Form::close() !!} @endcan
{{$categories->links()}}
@endsection @push('scripts') @endpush