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

{{ __('Bulletin') }}

@can('bulletine-create')

Create Bulletin

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

Bulletins

@foreach($bulletines as $c) @endforeach
Name Details Actions
{{$c->name}} {{$c->details}} @can('bulletine-edit') Edit @endcan @can('bulletine-delete') {!! Form::open(['method' => 'DELETE','route' => ['bulletine.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