@extends('admin.layouts.app') @section('content')

{{ trans('admin/main.badges') }}

{{ !empty($badge) ? trans('/admin/main.edit') : trans('admin/main.create') }}

@if(empty($badge))
@foreach(\App\Models\Badge::$badgeTypes as $type)
{{ csrf_field() }} @if(!empty(getGeneralSettings('content_translate')))
@error('locale')
{{ $message }}
@enderror
@else @endif
@error('title')
{{ $message }}
@enderror
@error('image')
{{ $message }}
@enderror
{{ trans('admin/main.from') }} {{ trans('admin/main.to') }}
{{ trans('admin/main.condition_'.$type) }}
@error('condition.from')
{{ $message }}
@enderror @error('condition.to')
{{ $message }}
@enderror
@error('score')
{{ $message }}
@enderror
@error('description')
{{ $message }}
@enderror
@if(!empty($badges[$type])) @foreach($badges[$type] as $badge) @endforeach @endif
{{ trans('admin/main.title') }} {{ trans('public.image') }} {{ trans('admin/main.condition') }} {{ trans('update.score') }} {{ trans('public.description') }} {{ trans('admin/main.created_at') }} {{ trans('admin/main.actions') }}
{{ $badge->title }} {{ $badge->condition->from }} to {{ $badge->condition->to }} {{ $badge->score }}

{{ $badge->description }}

{{ dateTimeFormat($badge->created_at,'j M Y') }} @can('admin_users_badges_edit') @endcan @can('admin_users_badges_delete') @include('admin.includes.delete_button',['url' => getAdminPanelUrl().'/users/badges/'.$badge->id.'/delete' , 'btnClass' => 'btn-sm']) @endcan
@endforeach
@else
{{ csrf_field() }} @if(!empty(getGeneralSettings('content_translate')))
@error('locale')
{{ $message }}
@enderror
@else @endif
@error('title')
{{ $message }}
@enderror
@error('image')
{{ $message }}
@enderror
{{ trans('admin/main.from') }} {{ trans('admin/main.to') }}
{{ trans('admin/main.condition_'.$badge->type) }}
@error('condition.from')
{{ $message }}
@enderror @error('condition.to')
{{ $message }}
@enderror
@error('score')
{{ $message }}
@enderror
@error('description')
{{ $message }}
@enderror
@endif
{{trans('admin/main.hints')}}
{{trans('admin/main.badges_hint_title_1')}}
{{trans('admin/main.badges_hint_description_1')}}
{{trans('admin/main.badges_hint_title_2')}}
{{trans('admin/main.badges_hint_description_2')}}
@endsection