@extends('layouts.admin.home') @section('title') {{ __('admin.pages.users.title') }} @endsection @section('css') @endsection @section('content')
Add User @include('flash::message') @if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
{{ __('admin.pages.users.module_label') }}
{{ __('admin.pages.users.overview') }}

{{ __('admin.pages.users.overview_subtitle') }}

@php $hasActiveFilters = ($search ?? '') !== '' || ($userType ?? '') !== ''; @endphp
@if(($search ?? '') !== '') @endif
@if($hasActiveFilters) @endif {{ $users->total() }}
@if($hasActiveFilters)
@if(($search ?? '') !== '') {{ $search }} × @endif @if(($userType ?? '') !== '') {{ ($userType ?? '') === '1' ? __('admin.pages.common.client') : __('admin.pages.common.provider') }} × @endif {{ __('admin.pages.common.reset') }}
@endif
@forelse($users as $record) @php $typeClass = $record->user_type == 1 ? 'bg-success-subtle text-success' : 'bg-primary-subtle text-primary'; $typeLabel = $record->user_type == 1 ? __('admin.pages.common.client') : __('admin.pages.common.provider'); $activationClass = $record->is_activate == 1 ? 'bg-success-subtle text-success' : 'bg-danger-subtle text-danger'; $activationLabel = $record->is_activate == 1 ? __('admin.pages.common.active') : __('admin.pages.common.inactive'); @endphp @php $averageRating = $record->ratings_avg_rating; @endphp @empty @endforelse
@php $from = $users->firstItem() ?? 0; $to = $users->lastItem() ?? 0; $total = $users->total(); @endphp {{ __('admin.pages.common.showing_entries', ['from' => $from, 'to' => $to, 'total' => $total]) }}
@endsection @section('script') @endsection