@extends('admin.layouts.profile') @section('page-title') ملف المستخدم @endsection @push('main-users-active') m-menu__item--active @endpush @section('profile-picture'){{ URL::asset('/' . $user->image) }}@endsection @section('user-name') {{ $user['name'] }} @endsection @section('user-email') {{ $user['phone'] }} @endsection @section('profile-item') @endsection @section('profile-title') عرض الملف الشخصي @endsection @section('profile-content')

@if (session('Done')) @endif @if (session('ERROR')) @endif @if ($errors->any()) @endif
@csrf {{ method_field('PUT') }}
@if ($errors->has('name')) {{ $errors->first('name') }} @endif
@if ($errors->has('email')) {{ $errors->first('email') }} @endif
@if ($errors->has('phone')) {{ $errors->first('phone') }} @endif
@if ($errors->has('city_id')) {{ $errors->first('city_id') }} @endif

تعديل كلمة المرور

يمكنك تركها فارغة اذا اردت الاحتفاظ بكلمة المرور الحالية
@if ($errors->has('password')) {{ $errors->first('password') }} @endif

@csrf {{ method_field('PUT') }}
@if ($errors->has('points_number')) {{ $errors->first('points_number') }} @endif
@if ($errors->has('points_reason')) {{ $errors->first('points_reason') }} @endif

اجمالي النقاط المستخدم: {{ $user->user_points()->sum('amount') }} نقطة

@if($user->user_points()->get()->count()) @foreach($user->user_points()->get() as $user_point) @endforeach @endif
# عدد النقاط تاريخ الحصول عليها سبب الحصول عليها
{{ $loop->index +1 }} {{ $user_point['amount'] }} {{ $user_point->created_at->format('d-m-Y') }} {{ $user_point['reason'] }}
@if (auth('admin')->user()->can('users.wallet'))
@csrf {{ method_field('PUT') }}

اضافة رصيد للمحفظة

ريال سعودي
@if ($errors->has('wallets_amount')) {{ $errors->first('wallets_amount') }} @endif
@if ($errors->has('wallets_reason')) {{ $errors->first('wallets_reason') }} @endif
@if ($errors->has('wallets_notes')) {{ $errors->first('wallets_notes') }} @endif

اجمالي رصيد المستخدم: {{ $user_credit }} ريال سعودي

@if($user->user_wallets()->get()->count()) @foreach($user->user_wallets()->orderBy('created_at', 'desc')->get() as $user_wallet) @endforeach @endif
# المبلغ تاريخ الدفع السبب
{{ $loop->index +1 }} {{ $user_wallet['amount'] }} {{ $user_wallet->created_at }} {{ $user_wallet['reason'] }}
@endif
@csrf {{ method_field('PUT') }}
@if($user->user_addresses()->get()->count()) @foreach($user->user_addresses()->get() as $user_address) @endforeach @endif
# العنوان وصف العنوان
{{ $loop->index +1 }} {{ $user_address['name'] }} {{ $user_address['description'] }}
@endsection @push('page_level_style') @endpush @push('page_level_script') @endpush