@extends('layouts.app') @push('pg_btn') @can('create-user') Create New User @endcan @endpush @section('content')

All Users

{!! Form::open(['route' => 'users.index', 'method'=>'get']) !!}
{{ Form::text('search', request()->query('search'), ['class' => 'form-control form-control-sm', 'placeholder'=>'Search users']) }}
{!! Form::close() !!}
@foreach($users as $user) @endforeach
Name Email Status Verified at Photo Action
{{$user->name}} {{$user->email}} @if($user->status) Active @else Disabled @endif {{$user->email_verified_at}}
@if ($user->profile_photo) Image placeholder @else @endif
@can('destroy-user') {!! Form::open(['route' => ['users.destroy', $user],'method' => 'delete', 'class'=>'d-inline-block dform']) !!} @endcan @can('view-user') @endcan @can('update-user') @endcan @can('destroy-user') {!! Form::close() !!} @endcan
{{$users->links()}}
@endsection @push('scripts') @endpush