@extends('admin.layout') @section('title','İstifadəçilər') @section('content')

İstifadəçilər

@foreach($users as $user) @endforeach
Ad Əlaqə Rol Tarif Status Əməliyyat
{{ $user->name }}
{{ $user->created_at->format('d.m.Y') }}
{{ $user->email }}
@if($user->phone)
{{ $user->phone }}
@endif
{{ $user->role }} {{ $user->plan->name ?? '—' }} @if($user->plan_expires_at)
{{ $user->plan_expires_at->format('d.m.Y') }}{{ $user->isPlanExpired() ? ' (bitdi)' : '' }}
@endif
{{ $user->status==='active'?'Aktiv':'Blok' }}
@csrf @method('PUT')
@csrf @method('DELETE')
{{ $users->links() }}
@endsection @push('scripts') @endpush