@extends('master') @section('content')
@include('admin.layout.breadcrumbs', [ 'title' => __('Profile'), ])

Hi, {{Auth::user()->name}}!

{{__('Change information about yourself on this page.')}}

@if (session('status')) @endif
image
@csrf
@if(Auth::user()->hasRole('admin'))
{{__('Organizations')}}
{{App\Models\User::role('organization')->count()}}
@endif @if(Auth::user()->hasRole('organization'))
{{__('Followers')}}
{{count(Auth::user()->followers)}}
@endif
{{__('Events')}}
@if(Auth::user()->hasRole('admin')) {{App\Models\Event::count()}} @elseif(Auth::user()->hasRole('organization')) {{App\Models\Event::where('user_id',Auth::user()->id)->count()}} @endif
{{Auth::user()->name}}
{{Auth::user()->email}}

{{Auth::user()->bio}}

@if(Auth::user()->hasRole('organization')) @php $followers = \App\Models\AppUser::whereIn('id',Auth::user()->followers)->get(); @endphp

{{__('Followers ('.count($followers).')')}}

@if(count($followers)==0) @else
    @foreach ($followers as $item)
  • avatar
    {{$item->name.' '.$item->last_name}}
    {{$item->email}}
  • @endforeach
@endif
@endif
@can('sokopay')

{{__('Sokopay Credentials')}}

@csrf
@error('name')
{{$message}}
@enderror
@error('email')
{{$message}}
@enderror
@error('secret_key')
{{$message}}
@enderror
@error('hash_key')
{{$message}}
@enderror
@endcan

{{__('Edit Profile')}}

@csrf
{{__('Admin Information')}}
@error('name')
{{$message}}
@enderror
@error('email')
{{$message}}
@enderror
@error('bio')
{{$message}}
@endif
@csrf
{{__('Change Password')}}
@error('current_password')
{{$message}}
@enderror @if(Session::has('error_msg')) {{Session::get('error_msg')}} @endif
@error('password')
{{$message}}
@enderror
@error('confirm_password')
{{$message}}
@enderror
@endsection