@extends('layouts.admin') @section('content-title') {{ __('categories.Categories') }} @endsection @section('content-breadcrumbs') {{ Breadcrumbs::render('salah')}} @endsection @section('content')
@if(session()->has('success')) @endif @if(session()->has('deleted')) @endif @foreach($categories as $category) @endforeach
# {{ __('categories.Libelle') }} {{ __('categories.Description') }} {{ __('categories.Type') }}
{{ $category->id }} {{ $category->libelle }} {{ $category->description }} {{ $category->type }} {{ __('admin.Edit') }} {{ __('admin.View') }} @if($id) {!!Form::open()->locale('admin')->put()->route('category.delete',['id'=>$id])->attrs(['style'=>'display:inline'])!!} @else {!!Form::open()->locale('admin')->put()->route('category.delete.root')->attrs(['style'=>'display:inline'])!!} @endif {!!Form::hidden('id')->value($category->id)!!} {!!Form::submit(__('Delete'))->color("danger")!!} {!!Form::close()!!}
{{ $categories->links() }}
@endsection