@extends('home') @section('title') {{ __('Supervisors') }} @endsection @section('styles') @endsection @section('content')
{!! Form::open(array('route' => ['admin.supervisor.index'],'method' => 'GET', 'class' => 'form-inline margin-bottom-0','id' => 'myform')) !!}

{!! Form::close() !!}

@foreach ($users as $index => $user) publish) class="danger" @endif> @endforeach
{{ __('Name') }} {{ __('Phone') }} {{ __('Email') }}
{{ $loop->index + $users->firstItem() }} @if ($user->photo != '') @else @endif {{ @$user->name }}

{{ $user->mobile }}

{!! $user->email !!} {{ $user->created_at->format('Y-m-d') }}
{{ $user->created_at->diffForHumans() }}
{{ Form::open(['method' => 'DELETE', 'route' => ['admin.supervisor.destroy', @$user->id]]) }} @if (@$user->publish == 1) @elseif (@$user->publish == -1) @else @endif {{ Form::close() }}
@endsection @section('scripts') @endsection