@extends('admin.layouts.app') @section('title', $title) @section('content')
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif
@if(request('status') || request('user')) Reset @endif
@if($licenses->isEmpty()) @else @foreach ($licenses as $license) @endforeach @endif
License Key Order Reference User Expiry Date Status Actions
No records found.
{{ $license->license_key }} @if($license->order) {{ $license->order->order_reference }} @else N/A (Manual) @endif @if($license->order) {{ $license->order->user->first_name }} {{ $license->order->user->last_name }} @else {{ App\Models\User::find($license->user_id)?->first_name }} {{ App\Models\User::find($license->user_id)?->last_name }} @endif {{ $license->expiry_date ? \Carbon\Carbon::parse($license->expiry_date)->format('F j, Y') : 'No Expiry' }} @if (is_null($license->expiry_date) || $license->expiry_date > now()) @if($license->is_revoked) Revoked @else Valid @endif @else Expired @endif @if (is_null($license->expiry_date) || $license->expiry_date > now()) @if ($license->is_revoked)
@csrf @method('PUT')
@else
@csrf @method('PUT')
@endif @else No Action @endif
@if($licenses->hasPages())
{{ $licenses->links() }}
@endif
@endsection