@extends('layouts.app')
{{-- @section('css')
@endsection --}}
@section('content')
Feature ({{$feature->feature_name ?? 'NA'}})
@php
$startingIndex = ($subscriptions->currentPage() - 1) * $subscriptions->perPage() + 1;
@endphp
@forelse ($subscriptions as $key => $subscription)
S.No.
Quantity
Weekly Revenue
Fortnightly Revenue
Monthly Revenue
Total Revenue
@empty
{{++$key}}
{{ $subscription->qty > 99999 ? 'Unlimited' : $subscription->qty }}
{{ $subscription->weekly_price }}
{{ $subscription->fortnightly_price }}
{{ $subscription->monthly_price }}
{{ $subscription->total_price }}
@endforelse
@if($subscriptions->count())
@endif
Grand Total
{{ number_format($subscriptions->sum('weekly_price'), 2) }}
{{ number_format($subscriptions->sum('fortnightly_price'), 2) }}
{{ number_format($subscriptions->sum('monthly_price'), 2) }}
{{ number_format($subscriptions->sum('total_price'), 2) }}