@extends('admin.layout.master') @section('title') Categories @endsection @section('content')
@include('admin.layout.laravel_errors')
Categories
@forelse($categories as $t=>$category) {{-- update modal--}} @empty @endforelse
Id Name Detail Created By Created At Updated At Edit Delete
{{ $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
@endsection @section('script') @endsection