Files
2026-07-14 00:01:48 +03:00

75 lines
3.2 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
@extends('admin.layouts.app')
@section('title', 'Global İzin Ayarları')
@section('page-title', 'Global İzin Ayarları')
@section('content')
<div class="row justify-content-center">
<div class="col-xl-7 col-lg-8">
<div class="card mb-3" style="border-color:rgba(245,158,11,.2);background:rgba(245,158,11,.04)">
<div class="card-body" style="padding:14px 18px">
<div style="font-size:13.5px;font-weight:700;color:var(--warning);display:flex;align-items:center;gap:7px;margin-bottom:4px">
<i class="bi bi-info-circle-fill"></i> Genel Bilgi
</div>
<div style="font-size:13px;color:var(--text)">
Bu ayarlar tüm site için geçerlidir. Belirli anime veya bölümler için
anime/bölüm sayfasından override yapabilirsiniz.
</div>
</div>
</div>
<div class="card">
<div class="card-header">
<i class="bi bi-shield-lock" style="color:var(--accent-lt)"></i>
<h6>Global İzin Ayarları</h6>
</div>
<div class="card-body p-0">
<form method="POST" action="{{ route('admin.permissions.update') }}">
@csrf
@forelse($permissions as $perm)
<div class="perm-row">
<div>
<div class="perm-name">{{ $perm->label }}</div>
@if($perm->description)
<div class="perm-desc">{{ $perm->description }}</div>
@endif
<div style="margin-top:3px">
<code style="font-size:11px;color:var(--text3);background:var(--surface);padding:1px 6px;border-radius:4px">{{ $perm->key }}</code>
</div>
</div>
<div class="perm-toggle">
<input type="radio" name="permissions[{{ $perm->key }}]"
id="g_{{ $perm->key }}_free" value="free"
{{ $perm->required_membership === 'free' ? 'checked' : '' }}>
<label for="g_{{ $perm->key }}_free" class="free">Ücretsiz</label>
<input type="radio" name="permissions[{{ $perm->key }}]"
id="g_{{ $perm->key }}_prem" value="premium"
{{ $perm->required_membership === 'premium' ? 'checked' : '' }}>
<label for="g_{{ $perm->key }}_prem" class="premium">Premium</label>
</div>
</div>
@empty
<div class="empty-state">
<i class="bi bi-shield-lock"></i>
<h6>İzin ayarı bulunamadı</h6>
<p>Seeder'ı çalıştırdın mı?</p>
</div>
@endforelse
@if($permissions->count() > 0)
<div class="p-4">
<button type="submit" class="btn btn-primary">
<i class="bi bi-floppy"></i> Kaydet
</button>
</div>
@endif
</form>
</div>
</div>
</div>
</div>
@endsection