@extends('layouts.portal') @php $editing = $badge->exists; $levelCfg = config('infotics.badges.levels'); $criteriaOptions = ['manual' => 'Manually by an administrator', 'course' => 'On completing a course', 'exam' => 'On passing an exam']; $type = old('criteria_type', $badge->criteria_type ?: 'manual'); @endphp @section('title', $editing ? 'Edit badge' : 'New badge') @section('subtitle', $editing ? $badge->name : 'Define what the badge means, how it is earned and how long it stays valid.') @section('actions') All badges @if($editing) Public page@endif @endsection @section('content')
@csrf @if($editing) @method('PUT') @endif

Badge details

How it is awarded

Skills & discovery

Cancel
@push('scripts')@endpush @endsection