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

{{ translate('All Staffs') }}

Selected Staffs (0)
@if (!empty($staffs) && sizeof($staffs) > 0) @foreach ($staffs as $key => $staff) @if ($staff->user != null) @php $specificDomain = 'staging.powercozmo.com'; $specificDomain_jordan = 'admin.jordanbaba.com'; $currentDomain = request()->getHost(); if ($currentDomain === $specificDomain) { $finalURL = 'https://staging.powercozmo.com' ; }elseif ($currentDomain === $specificDomain_jordan) { $finalURL = 'https://admin.jordanbaba.com'; } else { $finalURL = 'http://localhost/PowercozmoLaravel-2024'; } @endphp @endif @endforeach @else @endif
S.No. {{ translate('Name') }} {{ translate('Email') }} {{ translate('Phone') }} {{ translate('Role') }} {{ translate('Activity') }} {{ translate('Actions') }}
{{ $key + 1 + ($staffs->currentPage() - 1) * $staffs->perPage() }} {{ $staff->user->name }} {{ $staff->user->email }}
@if (!empty($staff->user->phone)) {{ (strpos($staff->user->phone_code, '+') === 0 ? '' : '+') . $staff->user->phone_code . ' ' . $staff->user->phone }} @else N/A @endif
{{ isset($staff->role) ? $staff->role->name : '--' }}See Activity

No data found

Staffs Show per page: {{ $staffs->total() }}
{{ $staffs->appends(request()->input())->links() }}
@endsection @section('modal') @include('modals.delete_modal') @endsection @section('script') @endsection