@extends('layouts.app') @section('content')

Violations

@if(Session::has('flash_message'))

{{ Session::get('flash_message') }}

@endif
Violation Records
@foreach($violation as $item) @endforeach
NameStatusActions
{{ $item->name }} {!! $item->status == 0 ? 'Inactive' : 'Active' !!} {!! Form::open([ 'method'=>'DELETE', 'url' => ['/admin/violation', $item->id], 'style' => 'display:inline' ]) !!} {!! Form::button('', array( 'type' => 'submit', 'class' => 'btn red btn-xs', 'title' => 'Delete Violation', 'onclick'=>'return confirm("Confirm delete?")' )) !!} {!! Form::close() !!}
@endsection