@extends('layouts.app') @section('template_title') Showing Users @endsection @section('template_linked_css') @endsection @section('content')
Showing Deleted Users
@if(count($users) === 0)

No Records Found

@else
@foreach($users as $user) @endforeach
ID Username Actions
{{$user->id}} {{$user->name}} {!! Form::model($user, array('action' => array('SoftDeletesController@update', $user->id), 'method' => 'PUT', 'data-toggle' => 'tooltip')) !!} {!! Form::button('', array('class' => 'btn btn-success btn-block btn-sm', 'type' => 'submit', 'data-toggle' => 'tooltip', 'title' => 'Restore User')) !!} {!! Form::close() !!} {!! Form::model($user, array('action' => array('SoftDeletesController@destroy', $user->id), 'method' => 'DELETE', 'class' => 'inline', 'data-toggle' => 'tooltip', 'title' => 'Destroy User Record')) !!} {!! Form::hidden('_method', 'DELETE') !!} {!! Form::button('', array('class' => 'btn btn-danger btn-sm inline','type' => 'button', 'style' =>'width: 100%;' ,'data-toggle' => 'modal', 'data-target' => '#confirmDelete', 'data-title' => 'Delete User', 'data-message' => 'Are you sure you want to delete this user ?')) !!} {!! Form::close() !!}
@endif
@include('modals.modal-delete') @endsection @section('footer_scripts') @if (count($users) > 10) @include('scripts.datatables') @endif @include('scripts.delete-modal-script') @include('scripts.save-modal-script') @include('scripts.tooltips') @endsection