@extends('layouts.app') @section('title', 'Revenue Report') @section('breadcrumb') @endsection @section('content')
₹{{ number_format($total, 2) }}
Total Revenue
{{ $renewals->count() }}
Total Renewals
₹{{ $renewals->count() ? number_format($total / $renewals->count(), 2) : '0.00' }}
Avg. per Renewal
@foreach($renewals as $renewal) @endforeach
LicenseCustomerPeriodPrevious ExpiryNew ExpiryAmountDate
{{ $renewal->license?->license_key }} {{ $renewal->license?->customer?->company_name }} {{ str_replace('_', ' ', ucfirst($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') }}
Total Revenue: ₹{{ number_format($total, 2) }}
@endsection