@extends('layouts.master') @section('content')

Dashboard

{{----}} {{-- Generate Report--}}
Revenue
Rs.{{number_format($totalamount,0)}}
Revenue (Pending)
Rs.{{number_format($pendingamount,0)}}
@php // Calculate percentage $percentage = $totalquestions > 0 ? round(($approvedquestions / $totalquestions) * 100): 0; // To make sure percentage is between 0 and 100 $percentage = min(max($percentage, 0), 100); @endphp
Questions
{{$approvedquestions}}
Invoices
{{$pendinginvoices}}
Earnings Overview
Question Status
Total Approved Rejected Pending
@endsection