@extends('snit.layouts.app') @section('content')

Revenue (Sales) Report

{{--

Total Books Published: {{ count($allBooks) }}

Total Sales Generated: ₦ {{ number_format(author()->totalSalesFromBooks()) }}

Total Profit Generated: ₦ {{ number_format(author()->presentTotalProfit()) }}

--}}
@foreach ($table_headers as $heading) @endforeach @foreach ($requestedAuthors as $author) {{-- front cover image --}} {{-- general pricing --}} {{-- total hardcover books sold --}} {{-- total ebooks sold --}} {{-- total books sold --}} {{-- total income generated --}} @endforeach
{!! $heading !!}
{{ $author->dp ?? 'No Image' }} {{ $author->fname }} {{-- ₦{{ number_format($author->price, 2) }} | ₦{{ number_format($author->eBookPrice(), 2) }} --}} {{-- {{ number_format($author->service->totalHardcoverOrders()->count()) }} --}} {{-- {{ number_format($author->service->totalEbookOrders()->count()) }} --}} {{-- {{ number_format($author->service->getTotalNumberSold()) }} --}} {{-- {{ '₦' . number_format($author->presentTotalSalesGenerated()) }} --}}
@endsection