@extends('layouts.app') @section('title', 'Lizenzen') @section('content')

Softwarelizenzen

{{ $licenses->total() }} Lizenzen
+ Lizenz CSV-Export
Zurücksetzen
@php $sortLink = fn ($col, $label) => ''.$label.($sort === $col ? ($dir === 'asc' ? ' ▲' : ' ▼') : '').''; @endphp @forelse($licenses as $license) @php $free = $license->seats_purchased - $license->active_assignments_count; @endphp @empty @endforelse
{!! $sortLink('name', 'Lizenz') !!} {!! $sortLink('manufacturer', 'Hersteller') !!} {!! $sortLink('license_type', 'Typ') !!} {!! $sortLink('seats_purchased', 'Seats') !!} Belegt Frei {!! $sortLink('expires_at', 'Ablauf') !!} {!! $sortLink('status', 'Status') !!}
{{ $license->name }}
{{ $license->inventory?->name }}
{{ $license->manufacturer }} {{ $license->typeLabel() }} {{ $license->seats_purchased }} {{ $license->active_assignments_count }} @if($free < 0) {{ $free }} @else {{ $free }} @endif {{ $license->expires_at?->format('d.m.Y') ?? '–' }} @if($license->auto_renewal)auto@endif {{ $license->statusLabel() }}
Keine Lizenzen gefunden.
{{ $licenses->links() }}
@endsection