@extends('layouts.app') @push('before-css') @endpush @section('content')

Category

Add Category

@foreach($category as $item) @endforeach
# Name Actions
{{ $item->id }} {{ $item->name }} {!! Form::open([ 'method'=>'DELETE', 'url' => ['/admin/category', $item->id], 'style' => 'display:inline' ]) !!} {!! Form::button(' Delete', array( 'type' => 'submit', 'class' => 'btn btn-danger btn-sm', 'title' => 'Delete Category', 'onclick'=>'return confirm("Confirm delete?")' )) !!} {!! Form::close() !!}
{!! $category->appends(['search' => Request::get('search')])->render() !!}
@endsection @push('js') @endpush