@extends('admin.layouts.master') @section('css') @include('admin.helper.formscss') @endsection @section('title', 'تعديل التاجر: ' . $vendor->user->name) @section('page-header') @endsection @section('content')

تعديل صلاحيات التاجر

تعديل صلاحيات التاجر: {{ $vendor->user->name }}

@csrf @method('PUT')
@if ($vendor->user->image) صورة التاجر @else
{{ substr($vendor->user->name, 0, 1) }}
@endif
{{ $vendor->user->name }}

{{ $vendor->user->email }}

@if ($vendor->user->mobile)

{{ $vendor->user->mobile }}

@endif
canDisable) ? 'checked' : '' }}>
canAdduser) ? 'checked' : '' }}>
canPostAds ?? false) ? 'checked' : '' }}>
{{ $vendor->managedUsers->count() }}
مستخدم تابع
{{ $vendor->managedUsers->whereNotNull('email_verified_at')->count() }}
مستخدم نشط
{{ number_format($vendor->user->balance, 0) }}
رصيد التاجر
{{ $vendor->created_at->diffInDays() }}
يوم كتاجر
عرض التفاصيل إلغاء

معلومات التاجر

تاريخ التسجيل: {{ $vendor->user->created_at->format('Y-m-d') }}
تاريخ الترقية لتاجر: {{ $vendor->created_at->format('Y-m-d') }}
@if ($vendor->user->store)
اسم المحل: {{ $vendor->user->store }}
@endif
العملة: {{ $vendor->user->currency->name ?? 'غير محدد' }}

تحذيرات مهمة

تعديل الصلاحيات

تعديل الصلاحيات سيؤثر فوراً على قدرة التاجر على إدارة المستخدمين التابعين له.

إلغاء صفة التاجر

لإلغاء صفة التاجر نهائياً:

إدارة التجار
@if ($vendor->managedUsers->count() > 0)

آخر المستخدمين التابعين

@foreach ($vendor->managedUsers->take(5) as $user)
@if ($user->image) صورة @else
{{ substr($user->name, 0, 1) }}
@endif
{{ $user->name }}
{{ number_format($user->balance, 0) }}
@endforeach @if ($vendor->managedUsers->count() > 5) @endif
@endif
@endsection @section('js') @include('admin.helper.formscripts') @endsection