diff --git a/resources/views/admin/users/edit.blade.php b/resources/views/admin/users/edit.blade.php index 494906c..07d4b79 100644 --- a/resources/views/admin/users/edit.blade.php +++ b/resources/views/admin/users/edit.blade.php @@ -1,3 +1,121 @@ -
- -
+@extends('admin.layouts.app') + +@section('title', 'ویرایش کاربر') + +@section('breadcrumb') +
+

ویرایش کاربر

+ +
+@endsection + +@section('content') +
+ + @if($errors->any()) + + @endif + +
+
+ +
+
+
ویرایش کاربر
+ بازگشت +
+ +
+
+ @csrf + @method('PUT') + + {{-- نام کامل --}} +
+ + + @error('full_name') + {{ $message }} + @enderror +
+ + {{-- ایمیل --}} +
+ + + @error('email') + {{ $message }} + @enderror +
+ + {{-- موبایل --}} +
+ + + @error('mobile') + {{ $message }} + @enderror +
+ + {{-- وضعیت --}} +
+ +
+ status) === 1 ? 'checked' : '' }}> + +
+ @error('status') + {{ $message }} + @enderror +
+ +
+ + + انصراف + +
+ +
+
+
+ +
+
+ +
+@endsection + diff --git a/resources/views/admin/users/index.blade.php b/resources/views/admin/users/index.blade.php index 2d7a016..90571f3 100644 --- a/resources/views/admin/users/index.blade.php +++ b/resources/views/admin/users/index.blade.php @@ -1,3 +1,534 @@ -
- -
+@extends('admin.layouts.app') + +@section('title', 'مدیریت کاربران') + +@section('breadcrumb') +
+

مدیریت ثبت‌نامی‌ها

+ +
+@endsection + +@section('content') +
+ + @if(session('success')) + + @endif + + @if(session('error')) + + @endif + + {{-- فیلتر جستجوی چندپارامتری --}} +
+
+
+
+
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+
+ + @if(request()->hasAny(['search', 'status', 'from_date', 'to_date'])) + پاک‌کردن + @endif +
+
+ +
+
+
+
+
+ + {{-- جدول --}} +
+
+
+
+
لیست ثبت‌نامی‌ها
+ {{ $users->total() }} کاربر +
+ +
+ + + + + + + + + + + + + + @forelse($users as $user) + + + + + + + + + {{-- عملیات (بر اساس دسترسی) --}} + + + @empty + + + + @endforelse + +
#نام کاربرایمیلموبایلوضعیتتاریخ عضویتعملیات
{{ $user->id }} +
{{ $user->full_name ?? $user->name }}
+ کاربر سایت +
{{ $user->email }}{{ $user->mobile ?? '-' }} + @if((int) $user->status === 1) + فعال + @else + غیرفعال + @endif + + {{ $user->created_at?->toJalali()->format('Y/m/d') ?? '-' }} + +
+ + @can('users.edit') + ویرایش + @endcan + + @can('users.change-password') + تغییر رمز + @endcan + + @can('users.delete') +
+ @csrf + @method('DELETE') + +
+ @endcan + +
+
+ کاربری برای نمایش وجود ندارد. +
+
+ + @if($users->hasPages()) + + @endif +
+
+
+ +
+@endsection + + +{{--@extends('admin.layouts.app')--}} + +{{--@section('title', 'مدیریت کاربران')--}} + +{{--@section('breadcrumb')--}} +{{--
--}} +{{--

مدیریت کاربران

--}} +{{-- --}} +{{--
--}} +{{--@endsection--}} + +{{--@section('content')--}} +{{--
--}} + +{{-- @if(session('success'))--}} +{{-- --}} +{{-- @endif--}} + +{{-- @if(session('error'))--}} +{{-- --}} +{{-- @endif--}} + +{{-- --}}{{-- جستجو --}} +{{--
--}} +{{--
--}} +{{--
--}} +{{--
--}} +{{--
--}} +{{--
--}} +{{-- --}} +{{--
--}} +{{-- --}} +{{-- @if(request('search'))--}} +{{-- پاک‌کردن--}} +{{-- @endif--}} +{{--
--}} +{{--
--}} +{{--
--}} +{{--
--}} +{{--
--}} + +{{-- --}}{{-- جدول کاربران --}} +{{--
--}} +{{--
--}} +{{--
--}} +{{--
--}} +{{--
لیست کاربران
--}} +{{-- {{ $users->total() }} کاربر--}} +{{--
--}} + +{{--
--}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} + +{{-- --}} +{{-- @forelse($users as $user)--}} +{{-- --}} +{{-- --}} + +{{-- --}}{{-- نام --}} +{{-- --}} + +{{-- --}}{{-- ایمیل --}} +{{-- --}} + +{{-- --}}{{-- موبایل --}} +{{-- --}} + +{{-- --}}{{-- وضعیت --}} +{{-- --}} + +{{-- --}}{{-- تاریخ عضویت --}} +{{-- --}} + +{{-- --}}{{-- عملیات --}} +{{-- --}} +{{-- --}} +{{-- @empty--}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- @endforelse--}} +{{-- --}} +{{--
#نام کاربرایمیلموبایلوضعیتتاریخ عضویتعملیات
{{ $user->id }}--}} +{{--
--}} +{{--
--}} +{{-- {{ mb_substr($user->full_name ?? $user->name, 0, 1) }}--}} +{{--
--}} +{{--
--}} +{{--
{{ $user->full_name ?? $user->name }}
--}} +{{-- کاربر سایت--}} +{{--
--}} +{{--
--}} +{{--
{{ $user->email }}{{ $user->mobile ?? '-' }}--}} +{{-- @if((int) $user->status === 1)--}} +{{-- فعال--}} +{{-- @else--}} +{{-- غیرفعال--}} +{{-- @endif--}} +{{-- --}} +{{-- @if($user->created_at)--}} +{{-- {{ $user->created_at->toJalali()->format('Y/m/d H:i') }}--}} +{{-- @else--}} +{{-- ---}} +{{-- @endif--}} +{{-- --}} +{{--
--}} + +{{-- --}}{{-- ویرایش --}} +{{-- --}} +{{-- ویرایش--}} +{{-- --}} + +{{-- --}}{{-- حذف --}} +{{--
--}} +{{-- @csrf--}} +{{-- @method('DELETE')--}} +{{-- --}} +{{--
--}} + +{{--
--}} +{{--
--}} +{{-- کاربری برای نمایش وجود ندارد.--}} +{{--
--}} +{{--
--}} + +{{-- --}}{{-- صفحه‌بندی --}} +{{-- @if($users->hasPages())--}} +{{-- --}} +{{-- @endif--}} +{{--
--}} +{{--
--}} +{{--
--}} + +{{--
--}} +{{--@endsection--}} + + +{{--@extends('admin.layouts.app')--}} + +{{--@section('title', 'مدیریت کاربران')--}} + +{{--@section('breadcrumb')--}} +{{--
--}} +{{--

مدیریت کاربران

--}} +{{-- --}} +{{--
--}} +{{--@endsection--}} + +{{--@section('content')--}} +{{--
--}} + +{{-- @if(session('success'))--}} +{{-- --}} +{{-- @endif--}} + +{{-- @if(session('error'))--}} +{{-- --}} +{{-- @endif--}} + +{{-- --}}{{----}}{{-- جستجو --}} +{{--
--}} +{{--
--}} +{{--
--}} +{{--
--}} +{{--
--}} +{{--
--}} +{{-- --}} +{{--
--}} +{{-- --}} +{{-- @if(request('search'))--}} +{{-- پاک‌کردن--}} +{{-- @endif--}} +{{--
--}} +{{--
--}} +{{--
--}} +{{--
--}} +{{--
--}} + +{{-- --}}{{----}}{{-- جدول کاربران --}} +{{--
--}} +{{--
--}} +{{--
--}} +{{--
--}} +{{--
لیست کاربران
--}} +{{-- {{ $users->total() }} کاربر--}} +{{--
--}} + +{{--
--}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- --}} + +{{-- --}} +{{-- @forelse($users as $user)--}} +{{-- --}} +{{-- --}} + +{{-- --}}{{----}}{{-- نام --}} +{{-- --}} + +{{-- --}}{{----}}{{-- ایمیل --}} +{{-- --}} + +{{-- --}}{{----}}{{-- موبایل --}} +{{-- --}} + +{{-- --}}{{----}}{{-- وضعیت --}} +{{-- --}} + +{{-- --}}{{----}}{{-- تاریخ عضویت --}} +{{-- --}} + +{{-- --}}{{----}}{{-- عملیات --}} +{{-- --}} +{{-- --}} +{{-- @empty--}} +{{-- --}} +{{-- --}} +{{-- --}} +{{-- @endforelse--}} +{{-- --}} +{{--
#نام کاربرایمیلموبایلوضعیتتاریخ عضویتعملیات
{{ $user->id }}--}} +{{--
--}} +{{--
--}} +{{-- {{ mb_substr($user->full_name ?? $user->name, 0, 1) }}--}} +{{--
--}} +{{--
--}} +{{--
{{ $user->full_name ?? $user->name }}
--}} +{{-- کاربر سایت--}} +{{--
--}} +{{--
--}} +{{--
{{ $user->email }}{{ $user->mobile ?? '-' }}--}} +{{-- @if((int) $user->status === 1)--}} +{{-- فعال--}} +{{-- @else--}} +{{-- غیرفعال--}} +{{-- @endif--}} +{{-- --}} +{{-- @if($user->created_at)--}} +{{-- {{ $user->created_at->toJalali()->format('Y/m/d H:i') }}--}} +{{-- @else--}} +{{-- ---}} +{{-- @endif--}} +{{-- --}} +{{--
--}} + +{{-- --}}{{----}}{{-- نمایش --}} +{{-- --}} +{{-- نمایش--}} +{{-- --}} + +{{-- --}}{{----}}{{-- ویرایش --}} +{{-- --}} +{{-- ویرایش--}} +{{-- --}} + +{{-- --}}{{----}}{{-- حذف --}} +{{--
--}} +{{-- @csrf--}} +{{-- @method('DELETE')--}} +{{-- --}} +{{--
--}} + +{{--
--}} +{{--
--}} +{{-- کاربری برای نمایش وجود ندارد.--}} +{{--
--}} +{{--
--}} + +{{-- --}}{{----}}{{-- صفحه‌بندی --}} +{{-- @if($users->hasPages())--}} +{{-- --}} +{{-- @endif--}} +{{--
--}} +{{--
--}} +{{--
--}} + +{{--
--}} +{{--@endsection--}} + diff --git a/resources/views/admin/users/show.blade.php b/resources/views/admin/users/show.blade.php index f11ca0e..97e83c0 100644 --- a/resources/views/admin/users/show.blade.php +++ b/resources/views/admin/users/show.blade.php @@ -1,3 +1,149 @@ -
- -
+@extends('admin.layouts.app') + +@section('title', 'مشاهده کاربر') + +@section('breadcrumb') +
+

مشاهده کاربر

+ +
+@endsection + +@section('content') +
+ + {{-- کارت پروفایل --}} +
+
+
+
+
+ {{ mb_substr($user->full_name ?? $user->name, 0, 1) }} +
+ +
{{ $user->full_name ?? $user->name }}
+

{{ $user->email }}

+ + @if((int) $user->status === 1) + فعال + @else + غیرفعال + @endif + + +
+
+
+ + {{-- اطلاعات کاربر --}} +
+
+
+
اطلاعات کاربر
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + @if($user->updated_at) + + + + + @endif +
شناسه{{ $user->id }}
نام{{ $user->full_name ?? $user->name }}
ایمیل{{ $user->email }}
موبایل{{ $user->mobile ?? '-' }}
وضعیت + @if((int) $user->status === 1) + فعال + @else + غیرفعال + @endif +
تاریخ عضویت{{ $user->created_at ? $user->created_at->toJalali()->format('Y/m/d H:i') : '-' }}
آخرین بروزرسانی{{ $user->updated_at->toJalali()->format('Y/m/d H:i') }}
+
+
+
+ + {{-- کامنت‌های کاربر (اگه رابطه تعریف شده) --}} + @if($user->comments && $user->comments->count()) +
+
+
نظرات ثبت‌شده ({{ $user->comments->count() }})
+
+
+
+ + + + + + + + + + @foreach($user->comments as $comment) + + + + + + @endforeach + +
نظرتاریخوضعیت
{{ \Illuminate\Support\Str::limit($comment->body, 80) }}{{ $comment->created_at->toJalali()->format('Y/m/d') }} + @if((int) $comment->status === 1) + پذیرفته‌شده + @else + در انتظار + @endif +
+
+
+
+ @endif +
+
+ +
+@endsection +