@extends('admin.layouts.app') @section('title', __('admins')) @section('content') @if ($errors->any())
@endif @if (session()->has('message'))
{{ session()->get('message') }}
@endif

Categories

{{ __('Add') }}
@foreach ($categories as $key => $category) @endforeach
# Image Name Parent Post Num Action
{{ $key + 1 }}
@if (Storage::disk('public')->exists('categoriePost/' . $category->image))
{{ $category->name }}
@else
@endif
{{$category->name}} {{-- @if ($category->parent) --}} {{ $category->parent ? $category->parent->name : '-' }} {{-- @endif --}} {{-- {{$category->posts->count()}} --}}
Edit Delete
@endsection @push('scripts') @endpush