@extends('admin.layouts.app') @php use App\Support\AdminOptions; $editing = $hero->exists; $json = fn (?array $value) => $value ? json_encode($value, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE) : ''; $selectedRoles = old('roles', $hero->roles ?? []); @endphp @section('title', $editing ? "Ubah {$hero->name}" : 'Buat Hero') @section('breadcrumb') @endsection @section('actions') @if ($editing) Lihat di situs
@csrf @method('DELETE')
@endif @endsection @section('content')
@csrf @if ($editing) @method('PUT') @endif
Role *
@foreach (AdminOptions::ROLES as $value => $label) @endforeach
@error('roles')
{{ $message }}
@enderror
@foreach ($emblemNames as $name) @endforeach
@foreach ($spellNames as $name) @endforeach
hasAny(\App\Http\Requests\Admin\HeroRequest::JSON_FIELDS)) open @endif> Data lanjutan: builds, matchups, items (JSON) Format data terstruktur untuk build, counter item, dan matchup hero.
@if ($editing) Tambah skin
@forelse ($hero->skins as $skin) @empty @endforelse
Skin Rarity Status Diamond Rilis Aksi
{{ $skin->name }} {{ $skin->tag ?: '—' }} {{ $skin->availability ?: '—' }} {{ $skin->price_diamonds ? number_format($skin->price_diamonds).' 💎' : '—' }} {{ $skin->release_date ?: '—' }}
Belum ada skin untuk hero ini.
@endif @endsection