@extends('layouts.admin') @section('content')
{{ $member->name }} {{ str_replace('_', ' ', $sales_type) }} report
@php $total = 0; @endphp @foreach($sales_reports as $sales_report) @php $total += $sales_report->amount; @endphp @endforeach @if(count($sales_reports) > 0) @endif
Name Amount
{{ $sales_report->module_text }} {{ $sales_report->amount }}
Grand Total   {{ number_format($total) }}
@push('alljs') @endpush @endsection