@extends('layouts.app') @section('title', $customer->company_name) @section('breadcrumb') @endsection @section('content')
Customer Information
Code{{ $customer->customer_code }}
Contact{{ $customer->contact_person }}
Email{{ $customer->email }}
Phone{{ $customer->phone ?? '—' }}
Address{{ $customer->address ?? '—' }}
Location {{ collect([$customer->city, $customer->state, $customer->country])->filter()->implode(', ') ?: '—' }}
Status {{ ucfirst($customer->status) }}
Created{{ $customer->created_at->format('d M Y') }}
{{ $customer->licenses->count() }}
Total Licenses
{{ $customer->licenses->where('status', 'active')->count() }}
Active
{{ $customer->licenses->where('status', 'expired')->count() }}
Expired
@forelse($customer->licenses as $license) @empty @endforelse
License KeyTypeExpiryUsersStatusActions
{{ $license->license_key }} {{ ucfirst($license->license_type) }} {{ $license->expiry_date?->format('d M Y') ?? 'Lifetime' }} {{ $license->max_users }} {{ ucfirst($license->status) }}
No licenses found.
@php $allRenewals = $customer->licenses->flatMap->renewalHistory->sortByDesc('created_at'); @endphp @forelse($allRenewals as $renewal) @empty @endforelse
LicensePeriodPrevious ExpiryNew ExpiryAmountDate
{{ $renewal->license?->license_key }} {{ str_replace('_', ' ', $renewal->renewal_period) }} {{ $renewal->previous_expiry->format('d M Y') }} {{ $renewal->new_expiry->format('d M Y') }} ₹{{ number_format($renewal->amount, 2) }} {{ $renewal->created_at?->format('d M Y') }}
No renewals found.
@php $allLogs = $customer->licenses->flatMap->logs->sortByDesc('created_at')->take(30); @endphp @forelse($allLogs as $log) @empty @endforelse
LicenseActionDescriptionByWhen
{{ $log->license?->license_key }} {{ ucfirst($log->action) }} {{ $log->description }} {{ $log->created_by }} {{ $log->created_at?->diffForHumans() }}
No logs found.
@endsection