@extends('admin.layouts.app') @section('title', 'Department') @section('content')

{{ __('Department') }}

@can('department-create')

Create Department

@csrf @method('POST')
@include('admin.partials.form-errors', array('field' => 'name'))
@endcan

Departments

@foreach($departments as $c) @endforeach
Name Actions
{{$c->name}} @can('department-edit') Edit @endcan @can('department-delete') {!! Form::open(['method' => 'DELETE','route' => ['department.destroy', $c->id],'style'=>'display:inline', 'onsubmit' => 'return confirm("Are you sure you want to delete this Record?")']) !!} {!! Form::submit('Delete', ['class' => 'btn btn-danger btn-sm']) !!} {!! Form::close() !!} @endcan
@endsection