@extends('admin.layouts.app') @section('content')

{{ $section->title }}

@if(Auth::user()->role_id == 2) @else
@endif
@if( $categories ) @foreach( $categories as $result ) @endforeach @endif
ID Category Name Category Image Status Action
{{$result->id }} {{ ucfirst($result->categories_name) }}
    @if($result->status == 1)
  • Active
  • @else
  • Inactive
  • @endif
@php $prodID = Crypt::encrypt($result->id); @endphp @if(Auth::user()->role_id == 2) @else
{{ Form::open(['route' => ['categories.destroy', $result->id], 'method' => 'delete']) }} {{ Form::button('', ['type' => 'submit', 'class' => 'btn btn-dim btn-danger']) }} {{ Form::close() }}
@endif
@endsection