@include('admin.layout.laravel_errors')
Categories
Id |
Name |
Detail |
Created By |
Created At |
Updated At |
Edit |
Delete |
@forelse($categories as $t=>$category)
{{ $t+1 }} |
{{ $category->name }} |
{{ ($category->detail) ? $category->detail : '--' }} |
{{ ($category->createdby) ? $category->createdby->name : '--' }} |
{{ Carbon\Carbon::parse($category->created_at)->format('d-m-Y h:i') }} |
{{ ($category->updated_at) ? Carbon\Carbon::parse($category->updated_at)->format('d-m-Y h:i') : '--' }} |
|
@if(sizeof($category->sub_categories)>0)
@else
@endif
|
{{-- update modal--}}
@empty
@endforelse