@extends('layouts.adminfonts') @section('title', 'Manage Fonts') @section('page-title', 'Font Management') @section('content')

Upload and manage your custom fonts

Upload New Font
Advanced Font Search
@if (request()->hasAny(['search', 'display_name', 'gender', 'size', 'uppercase_only', 'tags']))
Active filters: @if (request('search')) Font: {{ request('search') }} @endif @if (request('display_name')) Display: {{ request('display_name') }} @endif @if (request('gender')) Gender: {{ request('gender') }} @endif @if (request('size')) Size: {{ request('size') }}vw @endif @if (request('uppercase_only') !== null && request('uppercase_only') !== '') Uppercase: {{ request('uppercase_only') == '1' ? 'Yes' : 'No' }} @endif @if (request('tags')) Tags: {{ request('tags') }} @endif Clear All
@endif
@if ($fonts->count() > 0)
@foreach ($fonts as $font) @endforeach
Preview Font Name Display Name Gender Size Uppercase Only Status Created Actions
Example
{{ $font->font_name }} {{ $font->display_name }} {{ $font->gender }} {{ $font->font_size }}vw @if ($font->uppercase_only) Yes @else No @endif {{ $font->is_active ? 'Active' : 'Inactive' }} {{ $font->created_at->format('M d, Y') }}
@csrf
@csrf @method('DELETE')
@foreach ($fonts as $font)
Example
Font Name
{{ $font->font_name }}
Display Name
{{ $font->display_name }}
Gender
{{ $font->gender }}
Size
{{ $font->font_size }}vw
Uppercase
@if ($font->uppercase_only) Yes @else No @endif
Status
{{ $font->is_active ? 'Active' : 'Inactive' }}
Created
{{ $font->created_at->format('M d, Y') }}
View Edit
@csrf
@csrf @method('DELETE')
@endforeach
Showing {{ $fonts->firstItem() ?? 0 }} to {{ $fonts->lastItem() ?? 0 }} of {{ $fonts->total() }} fonts
@if ($fonts->hasPages())
{{-- Previous Button --}} @if ($fonts->onFirstPage()) @else @endif {{-- Page Numbers --}} @php $start = max($fonts->currentPage() - 2, 1); $end = min($start + 4, $fonts->lastPage()); @endphp @if ($start > 1) 1 @if ($start > 2) ... @endif @endif @for ($i = $start; $i <= $end; $i++) @if ($i == $fonts->currentPage()) {{ $i }} @else {{ $i }} @endif @endfor @if ($end < $fonts->lastPage()) @if ($end < $fonts->lastPage() - 1) ... @endif {{ $fonts->lastPage() }} @endif {{-- Next Button --}} @if ($fonts->hasMorePages()) @else @endif
@endif
@else

No fonts uploaded yet

Start building your font collection by uploading your first font.

Upload Your First Font
@endif
@endsection @section('scripts') @endsection