@extends('layouts.app') @push('pg_btn') All Categories @endpush @section('content')
@can('update-category') {!! Form::open(['route' => ['category.update', $category], 'method'=>'put']) !!} @endcan
Category information
{{ Form::label('category_name', 'Category Name', ['class' => 'form-control-label']) }} {{ Form::text('category_name', $category->category_name, ['class' => 'form-control']) }}

{!! Form::hidden('status', 0) !!} status ? 'checked' : ''}} class="custom-control-input" id="status"> {{ Form::label('status', 'Status', ['class' => 'custom-control-label']) }}
@can('update-user')
{{ Form::submit('Submit', ['class'=> 'mt-5 btn btn-primary']) }}
@endcan
@can('update-category') {!! Form::close() !!} @endcan
@endsection