@extends('backend.index') @section('content')
Edit user {{ $user->name }}
@csrf
Min width, height 300x300, Image will be automatically cropped and resized to 300x300 pixel.
@if($user->group && \App\Models\Role::getValue('admin_roles'))
{!! makeRolesDropDown('role', $user->group ? $user->group->role_id : 0, 'required') !!}
@endif
{{ $user->name }}

{{ $user->email }}

@if($user->group && \App\Models\Role::getValue('admin_roles')) @endif @if($user->artist) @endif
Username {{ $user->username }}
E-Mail {{ $user->email }}
Registered {{ $user->created_at }}
Subscription @if($user->subscription) {{ $user->subscription->service->title }} @else None @endif
Recent Activity {{ $user->last_activity }}
IP {{ $user->logged_ip }}
Group {{ $user->group->role->name }}
Badge {!! \App\Models\Role::getValue('group_badge') !!}
Linked Artist/Band {{ $user->artist->name }}
Total Songs {{ DB::table('songs')->where('user_id', $user->id)->count() }}
Total Albums {{ DB::table('albums')->where('user_id', $user->id)->count() }}
Total Playlists {{ DB::table('playlists')->where('user_id', $user->id)->count() }}
Comments {{ DB::table('comments')->where('user_id', $user->id)->count() }}
@if($user->connect->firstWhere('service', 'facebook')) @endif @if($user->connect->firstWhere('service', 'twitter')) @endif
@endsection