@extends('custom_master') @section('title',"Sales Activity report") @section('navigation') @endsection @section('content')
{{-- --}}
--}} {{-- --}} {{--

Church Management System

Printed on : {{ now()->format('d-M-Y') }}
Start date: {{ request('start-date') }}
End date: {{ request('end-date') }}
{{--

Periodical payments

--}}

Start Date: {{ request('start-date')??'N/A' }}, End Date: {{ request('end-date')??'N/A' }}

{{--

--}} {{-- POS Name:--}} {{-- {{ request('pos_name')??'ALL' }},--}} {{-- Invoice Type:--}} {{-- {{ request('status')??'ALL' }}--}} {{--

--}}

Offering Summary Report

@php $sum=0; @endphp @foreach($data as $item) @php $itemSum = \App\Http\Controllers\TitheAndOfferingController::sumByDate($item,$start,$end); $sum+=$itemSum; @endphp @endforeach
Offering Type Total amount
{{ $item->OfferingName??'N/A' }} {{ number_format($itemSum??0) }}
TOTAL AMOUNT: {{ number_format($sum) }}
@stop