diff --git a/resources/views/admin/admins/create.blade.php b/resources/views/admin/admins/create.blade.php index 0b6c400..e9af63a 100644 --- a/resources/views/admin/admins/create.blade.php +++ b/resources/views/admin/admins/create.blade.php @@ -1,3 +1,308 @@ -
- -
+@extends('admin.layouts.app') + +@section('title', 'ایجاد مدیر جدید') + +@section('breadcrumb') + +
+ +

+ ایجاد مدیر جدید +

+ + + +
+ +@endsection + + +@section('content') + +
+ +
+ + @csrf + +
+ +
+ +
+ +
+
+ اطلاعات مدیر +
+
+ +
+ +
+ + {{-- نام کامل --}} +
+ + + + + + @error('full_name') +
+ {{ $message }} +
+ @enderror + +
+ + + {{-- نام کاربری --}} +
+ + + + + + @error('username') +
+ {{ $message }} +
+ @enderror + +
+ + + {{-- ایمیل --}} +
+ + + + + + @error('email') +
+ {{ $message }} +
+ @enderror + +
+ + + {{-- موبایل --}} +
+ + + + + + @error('mobile') +
+ {{ $message }} +
+ @enderror + +
+ + + {{-- رمز --}} +
+ + + + + + @error('password') +
+ {{ $message }} +
+ @enderror + +
+ + + {{-- تکرار رمز --}} +
+ + + + + +
+ +
+ +
+ +
+ +
+ + + {{-- ستون سمت چپ --}} +
+ + {{-- وضعیت --}} +
+ +
+ وضعیت +
+ +
+ + + +
+ +
+ + + {{-- دسترسی‌ها --}} +
+ +
+ دسترسی‌ها +
+ +
+ + @foreach($permissions ?? [] as $permission) + +
+ + + + + +
+ + @endforeach + +
+ +
+ + + {{-- دکمه ها --}} +
+ +
+ + + + + + بازگشت + + +
+ +
+ +
+ +
+ +
+ +
+ +@endsection diff --git a/resources/views/admin/admins/edit.blade.php b/resources/views/admin/admins/edit.blade.php index ffc641a..2bff933 100644 --- a/resources/views/admin/admins/edit.blade.php +++ b/resources/views/admin/admins/edit.blade.php @@ -1,3 +1,427 @@ -
- -
+@extends('admin.layouts.app') + +@section('title', 'ویرایش مدیر') + +@section('breadcrumb') + +
+ +

+ ویرایش مدیر +

+ + + +
+ +@endsection + + +@section('content') + +
+ +
+ + @csrf + + @method('PUT') + + +
+ + {{-- اطلاعات مدیر --}} + +
+ +
+ +
+ +
+ اطلاعات مدیر +
+ +
+ + +
+ +
+ + + {{-- نام --}} + +
+ + + + + + @error('full_name') + +
+ {{ $message }} +
+ + @enderror + +
+ + + {{-- username --}} + +
+ + + + + + @error('username') + +
+ {{ $message }} +
+ + @enderror + +
+ + + {{-- email --}} + +
+ + + + + + @error('email') + +
+ {{ $message }} +
+ + @enderror + +
+ + + {{-- mobile --}} + +
+ + + + + + @error('mobile') + +
+ {{ $message }} +
+ + @enderror + +
+ + + {{-- password --}} + +
+ + + + + + + اگر نمی‌خواهید رمز تغییر کند، این قسمت را خالی بگذارید. + + + @error('password') + +
+ {{ $message }} +
+ + @enderror + +
+ + + {{-- password confirmation --}} + +
+ + + + + +
+ + + {{-- status --}} + +
+ + + + + + @error('status') + +
+ {{ $message }} +
+ + @enderror + +
+ +
+ +
+ +
+ +
+ + + {{-- دسترسی‌ها --}} + +
+ +
+ +
+ +
+ +
+ سطح دسترسی +
+ + + دسترسی‌های مدیر را مدیریت کنید. + + +
+ +
+ + +
+ + @php + + $selectedPermissions = old( + 'permissions', + $admin->permissions->pluck('id')->toArray() + ); + + @endphp + + + @error('permissions') + +
+ {{ $message }} +
+ + @enderror + + + @forelse($permissions as $permission) + +
+ + id, + $selectedPermissions + ))> + + + +
+ + @empty + +
+ + + + هنوز دسترسی‌ای تعریف نشده است. + +
+ + @endforelse + +
+ +
+ +
+ +
+ + + {{-- دکمه‌ها --}} + +
+ +
+ +
+ +
+ + + + آخرین ویرایش: + + @if($admin->updated_at) + + + {{ $type->updated_at ? $type->updated_at->toJalali()->format('Y/m/d H:i') : '-' }} + @else + + - + + @endif + +
+ + +
+ + + + انصراف + + + + + +
+ +
+ +
+ +
+ +
+ +
+ +@endsection diff --git a/resources/views/admin/admins/index.blade.php b/resources/views/admin/admins/index.blade.php index eb91d77..1439b39 100644 --- a/resources/views/admin/admins/index.blade.php +++ b/resources/views/admin/admins/index.blade.php @@ -3,283 +3,896 @@ @section('title', 'مدیریت مدیران') @section('breadcrumb') -
- -

- مدیریت مدیران -

- +

مدیریت مدیران

-
- @endsection - @section('content') -
- {{-- عنوان و عملیات --}} - -
- -
- -
- -
- -
- -
- -
- لیست مدیران -
- -

- مدیریت مدیران پنل آژانس هواپیمایی -

- -
- - - -
- -
- -
- + @if(session('success')) + + @endif + @if(session('error')) + + @endif + + {{-- عنوان و دکمه ایجاد --}} +
+
+
+
+
+
+
لیست مدیران
+

مدیریت مدیران و سطح دسترسی پنل

+
+ +
+
+
+
- {{-- جدول مدیران --}} -
-
-
-
- - - +
- - - - - - - - - - - - - - - - - - + + + + + + + + - - @forelse($admins as $admin) - + + {{-- نام مدیر --}} + {{-- نام کاربری --}} + + {{-- اطلاعات تماس --}} - - - + {{-- وضعیت --}} - - - - - - - + {{-- تاریخ ایجاد --}} + {{-- عملیات: ویرایش و حذف --}} + - - @empty - - - - - @endforelse - -
- # - - نام و نام خانوادگی - - نام کاربری - - ایمیل - - موبایل - - وضعیت - - تاریخ ایجاد - - عملیات - #مدیرنام کاربریاطلاعات تماسدسترسی‌هاوضعیتتاریخ ایجادعملیات
{{ $admin->id }} - {{ $admin->id }} +
+
+ مدیر +
+
+
{{ $admin->full_name }}
+ مدیر پنل +
+
{{ $admin->username }} - - - {{ $admin->full_name }} - - +
{{ $admin->email }}
+
{{ $admin->mobile }}
- - - {{ $admin->username }} - - + {{-- دسترسی‌ها --}} + + @forelse($admin->permissions as $permission) + {{ $permission->name }} + @empty + بدون دسترسی + @endforelse - - {{ $admin->email }} - - - - {{ $admin->mobile }} - - - @if((int) $admin->status === 1) - - - فعال - - + فعال @else - - - غیرفعال - - + غیرفعال @endif - - - {{ optional($admin->created_at)->format('Y/m/d') }} - + @if($admin->created_at) + {{ $admin->created_at->toJalali()->format('Y/m/d H:i') }} + @else + - + @endif +
-
- -
- + {{-- ویرایش --}} - - - + class="btn btn-sm btn-secondary fw-semibold"> + ویرایش - + {{-- حذف --}}
@csrf - @method('DELETE')
-
- -
- - مدیری برای نمایش وجود ندارد. - -
- +
+ مدیری برای نمایش وجود ندارد.
- -
- - - + {{-- صفحه‌بندی --}} + @if($admins->hasPages()) + + @endif
-
-
- @endsection + + +{{--@extends('admin.layouts.app')--}} + +{{--@section('title', 'مدیریت مدیران')--}} + +{{--@section('breadcrumb')--}} + +{{--
--}} + +{{--

--}} +{{-- مدیریت مدیران--}} +{{--

--}} + +{{-- --}} + +{{--
--}} + +{{--@endsection--}} + + +{{--@section('content')--}} + +{{--
--}} + +{{-- --}}{{-- پیام موفقیت --}} +{{-- @if(session('success'))--}} + +{{-- --}} + +{{-- @endif--}} + + +{{-- --}}{{-- خطاهای عمومی --}} +{{-- @if(session('error'))--}} + +{{-- --}} + +{{-- @endif--}} + + +{{-- --}}{{-- عنوان و عملیات --}} + +{{--
--}} + +{{--
--}} + +{{--
--}} + +{{--
--}} + +{{--
--}} + +{{--
--}} + +{{--
--}} +{{-- لیست مدیران--}} +{{--
--}} + +{{--

--}} +{{-- مدیریت مدیران و سطح دسترسی پنل--}} +{{--

--}} + +{{--
--}} + + +{{-- --}} + +{{--
--}} + +{{--
--}} + +{{--
--}} + +{{--
--}} + +{{--
--}} + + +{{-- --}}{{-- جدول مدیران --}} + +{{--
--}} + +{{--
--}} + +{{--
--}} + +{{--
--}} + +{{-- --}} + +{{-- --}} + +{{-- --}} + +{{-- --}} + +{{-- --}} + +{{-- --}} + +{{-- --}} + +{{-- --}} + +{{-- --}} + +{{-- --}} + +{{-- --}} + +{{-- --}} + +{{-- --}} + + +{{-- --}} + +{{-- @forelse($admins as $admin)--}} + +{{-- --}} + +{{-- --}}{{-- ID --}} + +{{-- --}} + + +{{-- --}}{{-- نام مدیر --}} + +{{-- --}} + + +{{-- --}}{{-- username --}} + +{{-- --}} + + +{{-- --}}{{-- اطلاعات تماس --}} + +{{-- --}} + + +{{-- --}}{{-- Permissionها --}} + +{{-- --}} + + +{{-- --}}{{-- وضعیت --}} + +{{-- --}} + + +{{-- --}}{{-- تاریخ ایجاد --}} + +{{-- --}} + + +{{-- --}}{{-- عملیات --}} + +{{-- --}} + +{{-- --}} + +{{-- @empty--}} + +{{-- --}} + +{{-- --}} + +{{-- --}} + +{{-- @endforelse--}} + +{{-- --}} + +{{--
--}} +{{-- #--}} +{{-- --}} +{{-- مدیر--}} +{{-- --}} +{{-- نام کاربری--}} +{{-- --}} +{{-- اطلاعات تماس--}} +{{-- --}} +{{-- دسترسی‌ها--}} +{{-- --}} +{{-- وضعیت--}} +{{-- --}} +{{-- تاریخ ایجاد--}} +{{-- --}} +{{-- عملیات--}} +{{--
--}} +{{-- {{ $admin->id }}--}} +{{-- --}} + +{{--
--}} + +{{--
--}} + +{{-- --}} + +{{--
--}} + +{{--
--}} + +{{--
--}} +{{-- {{ $admin->full_name }}--}} +{{--
--}} + +{{-- --}} +{{-- مدیر پنل--}} +{{-- --}} + +{{--
--}} + +{{--
--}} + +{{--
--}} + +{{-- --}} + +{{-- --}} + +{{-- {{ $admin->username }}--}} + +{{-- --}} + +{{-- --}} + +{{--
--}} + +{{-- --}} + +{{-- {{ $admin->email }}--}} + +{{--
--}} + +{{--
--}} + +{{-- --}} + +{{-- {{ $admin->mobile }}--}} + +{{--
--}} + +{{--
--}} + +{{-- @forelse($admin->permissions as $permission)--}} + +{{-- --}} + +{{-- {{ $permission->name }}--}} + +{{-- --}} + +{{-- @empty--}} + +{{-- --}} + +{{-- بدون دسترسی--}} + +{{-- --}} + +{{-- @endforelse--}} + +{{-- --}} + +{{-- @if((int) $admin->status === 1)--}} + +{{-- --}} + +{{-- --}} + +{{-- فعال--}} + +{{-- --}} + +{{-- @else--}} + +{{-- --}} + +{{-- --}} + +{{-- غیرفعال--}} + +{{-- --}} + +{{-- @endif--}} + +{{-- --}} + +{{-- @if($admin->created_at)--}} + +{{-- --}} + +{{-- {{ $admin->created_at->toJalali()->format('H:i Y/m/d') }}--}} + +{{-- --}} + +{{-- @else--}} + +{{-- ---}} + +{{-- @endif--}} + +{{-- --}} + +{{--
--}} + +{{-- --}}{{-- ویرایش --}} + +{{-- --}} + +{{-- --}} + +{{-- --}} + + +{{-- --}}{{-- حذف --}} + +{{--
--}} + +{{-- @csrf--}} + +{{-- @method('DELETE')--}} + +{{-- --}} + +{{--
--}} + +{{--
--}} + +{{--
--}} + +{{--
--}} + +{{-- --}} + +{{-- مدیری برای نمایش وجود ندارد.--}} + +{{--
--}} + +{{--
--}} + +{{--
--}} + + +{{-- --}}{{-- Pagination --}} + +{{-- @if($admins->hasPages())--}} + +{{-- --}} + +{{-- @endif--}} + +{{--
--}} + +{{--
--}} + +{{--
--}} + +{{--
--}} + +{{--@endsection--}} + +{{--@extends('admin.layouts.app')--}} + +{{--@section('title', 'مدیریت مدیران')--}} + +{{--@section('breadcrumb')--}} + +{{--
--}} + +{{--

--}} +{{-- مدیریت مدیران--}} +{{--

--}} + +{{-- --}} + +{{--
--}} + +{{--@endsection--}} + + +{{--@section('content')--}} + +{{--
--}} + +{{-- --}}{{-- عنوان و عملیات --}} + +{{--
--}} + +{{--
--}} + +{{--
--}} + +{{--
--}} + +{{--
--}} + +{{--
--}} + +{{--
--}} +{{-- لیست مدیران--}} +{{--
--}} + +{{--

--}} +{{-- مدیریت مدیران پنل آژانس هواپیمایی--}} +{{--

--}} + +{{--
--}} + +{{-- --}} + +{{--
--}} + +{{--
--}} + +{{--
--}} + +{{--
--}} + +{{--
--}} + + +{{-- --}}{{-- جدول مدیران --}} + +{{--
--}} + +{{--
--}} + +{{--
--}} + +{{--
--}} + +{{-- --}} + +{{-- --}} + +{{-- --}} + +{{-- --}} + +{{-- --}} + +{{-- --}} + +{{-- --}} + +{{-- --}} + +{{-- --}} + +{{-- --}} + +{{-- --}} + +{{-- --}} + +{{-- --}} + +{{-- --}} + +{{-- @forelse($admins as $admin)--}} + +{{-- --}} + +{{-- --}} + + +{{-- --}} + + +{{-- --}} + + +{{-- --}} + + +{{-- --}} + + +{{-- --}} + + +{{-- --}} + + +{{-- --}} + +{{-- --}} + +{{-- @empty--}} + +{{-- --}} + +{{-- --}} + +{{-- --}} + +{{-- @endforelse--}} + +{{-- --}} + +{{--
--}} +{{-- #--}} +{{-- --}} +{{-- نام و نام خانوادگی--}} +{{-- --}} +{{-- نام کاربری--}} +{{-- --}} +{{-- ایمیل--}} +{{-- --}} +{{-- موبایل--}} +{{-- --}} +{{-- وضعیت--}} +{{-- --}} +{{-- تاریخ ایجاد--}} +{{-- --}} +{{-- عملیات--}} +{{--
--}} +{{-- {{ $admin->id }}--}} +{{-- --}} + +{{-- --}} +{{-- {{ $admin->full_name }}--}} +{{-- --}} + +{{-- --}} + +{{-- --}} +{{-- {{ $admin->username }}--}} +{{-- --}} + +{{-- --}} + +{{-- {{ $admin->email }}--}} + +{{-- --}} + +{{-- {{ $admin->mobile }}--}} + +{{-- --}} + +{{-- @if((int) $admin->status === 1)--}} + +{{-- --}} +{{-- فعال--}} +{{-- --}} + +{{-- @else--}} + +{{-- --}} +{{-- غیرفعال--}} +{{-- --}} + +{{-- @endif--}} + +{{-- --}} + +{{-- {{ optional($admin->created_at)->format('Y/m/d') }}--}} + +{{-- --}} + +{{--
--}} + +{{-- --}} + +{{-- --}} + +{{-- --}} + + +{{--
--}} + +{{-- @csrf--}} + +{{-- @method('DELETE')--}} + +{{-- --}} + +{{--
--}} + +{{--
--}} + +{{--
--}} + +{{--
--}} + +{{-- مدیری برای نمایش وجود ندارد.--}} + +{{--
--}} + +{{--
--}} + +{{--
--}} + + +{{-- --}} + +{{--
--}} + +{{--
--}} + +{{--
--}} + +{{--
--}} + +{{--@endsection--}}