@extends('layouts.header') @section('title','View Categories') @section('content')
View Categories
@if (count($errors) > 0)
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif @if ( Session::has('flash_message') ) @endif @if(count($categories)>0)
@foreach ($categories as $item) @endforeach
Name Type Slug Status Actions
{{$item->name}} @if($item->type==1) Product @elseif($item->type==2) Blog @elseif($item->type==3) Site Pages @elseif($item->type==4) Gallery @endif {{$item->slug}} @if($item->status) Active @else Inactive @endif @if($item->type!=3) @endif
{{$categories->links()}} @else
No Category Found.
@endif
@endsection