@extends('layouts.admin') @section('content')
{{ $member->name }} {{ str_replace('_', ' ', $month != 'all' ? date('F-Y', strtotime($month)) : "all") }} {{--{{ $month!='all' ? 'month': ''}}--}} sales 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