@extends('layouts.app') @section('stitle', __('messages.payment')) @section('title', __('messages.payment_report')) @section('content')
@if(session()->get('title') == "success") @elseif (session()->get('title') == "error") @elseif($errors->any()) @endif
{{--
--}} {{--
--}}
@include('reports.payment_menu')
{{--

Table Hover Animation

--}}
@if($data->isNotEmpty()) @php $return_total = 0; $return_count = 0; $net_total = 0; @endphp @foreach($data as $paymentData) @php $amount = $paymentData->total; $return_amount = $paymentData->paymentReturnHistory->sum('amount'); $net_amount = $amount - $return_amount; $return_total += $return_amount; $return_count += $paymentData->paymentReturnHistory->count(); $net_total += $net_amount; @endphp @endforeach {{-- --}} @else
No Data Found! Adjust the date & filters in the report to get more specific results.
@endif
{{__('messages.PaymentMethod')}} {{__('Amount')}} {{__('Orders')}} {{ __('Return Amount') }} {{ __('Return Orders') }} {{ __('Net Amount') }}
{{ $paymentData->name }} {{ $amount }} {{ $paymentData->orders_count }} {{ $return_amount }} {{ $paymentData->paymentReturnHistory->count() }} {{ $net_amount }}
{{__('messages.total')}} {{ number_format($data->sum('total'), 2) }} {{ $data->sum('orders_count') }} {{ $return_total }} {{ $return_count }} {{ $net_total }} {{ $net }}
@endsection @push('my_scripts') @stack('my_scripts') @endpush