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

Client Summary Reports

@php $totalPaid = 0; $totalUnpaid = 0; $totalDelete = 0; $totalLiveLink = 0; @endphp @if (!empty($info->results) && $info->results->isNotEmpty()) @foreach ($info->results as $key => $row) @php $totalPaid += $row->paid; $totalUnpaid += $row->unpaid; $totalDelete += $row->delete; $totalLiveLink += $row->live_links; @endphp @endforeach @endif
Email Total Paid Total Unpaid Total Deleted Total Live Link Last Date of Order
{{ $row->email }} {{ sprintf("$%0.2f", $row->paid) }} {{ sprintf("$%0.2f", $row->unpaid) }} {{ sprintf("$%0.2f", $row->delete) }} {{round($row->live_links, 2)}} {{ $row->last_order_date }}
Total {{ sprintf("$%0.2f", $totalPaid) }} {{ sprintf("$%0.2f", $totalUnpaid) }} {{ sprintf("$%0.2f", $totalDelete) }} {{ $totalLiveLink }}
{{ $info->results->links() }}
@endsection @push('headerPartial') @endpush @push('footerPartial') @endpush