@extends('layouts.customer') @section('content') @php //echo '
';
    //print_r($staffs);die;
    @endphp
    

Staff

@can('user_create')
@if(request()->get('status') == 'archived') All staffs @else Add Staff Archived staffs @endif @if(request()->get('status') == 'archived') {!! Form::open(['method' => 'POST','route' => ['staffs.restore-all', [$account]],'style'=>'display:inline']) !!} {!! Form::submit('Restore All', ['class' => 'btn btn-info btn-sm']) !!} {!! Form::close() !!} @endif
@endcan
@if ($message = Session::get('success'))

{{ $message }}

@endif
@if($staffs)
                                   
                                    
@php $i = 0; @endphp @foreach($staffs as $staff) @endforeach @else

No records found!

@endif
ID Team Member Contact Role Wage Verified At Action
{{ $staff->id }} {{ $staff->email }}
{{ $staff->phone }}
{{ $staff->roles()->latest()->first()->display_name ?? '' }} {{-- $staff->stffRoleName($account) --}} @if (empty($staff->payment_type_hourly) || $staff->payment_type_hourly == 0) N/A @else ${{ $staff->payment_type_hourly }} {{ $staff->payment_type == 0 ? '/hr' : '/month' }} @endif {{ $staff->email_verified_at }} @can('user_delete') @endcan
@endsection @section('script') @endsection