{{ csrf_field() }}
@error('badge_id')
{{ $message }}
@enderror
{{ trans('admin/main.custom_badges') }}
@if(!empty($user->customBadges)) @foreach($user->customBadges as $customBadge) @php $condition = json_decode($customBadge->badge->condition); @endphp @endforeach @endif
{{ trans('admin/main.title') }} {{ trans('admin/main.image') }} {{ trans('admin/main.condition') }} {{ trans('admin/main.description') }} {{ trans('admin/main.created_at') }} {{ trans('admin/main.actions') }}
{{ $customBadge->badge->title }} {{ $condition->from }} to {{ $condition->to }}

{{ $customBadge->badge->description }}

{{ dateTimeFormat($customBadge->badge->created_at,'j M Y') }} @can('admin_users_edit') @include('admin.includes.delete_button',['url' => getAdminPanelUrl().'/users/'.$user->id.'/deleteBadge/'.$customBadge->id , 'btnClass' => 'btn-sm']) @endcan
{{ trans('admin/main.auto_badges') }}
@if(!empty($userBadges)) @foreach($userBadges as $badge) @php $badgeCondition = json_decode($badge->condition); @endphp @endforeach @endif
{{ trans('admin/main.title') }} {{ trans('admin/main.image') }} {{ trans('admin/main.condition') }} {{ trans('admin/main.description') }} {{ trans('admin/main.created_at') }}
{{ $badge->title }} {{ $badgeCondition->from }} to {{ $badgeCondition->to }}

{{ $badge->description }}

{{ dateTimeFormat($badge->created_at,'j M Y') }}