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

Payments

Boost : {{App\Models\AfterConversionRate::where('payment_type',App\Models\Payment::TYPE_BOOST)->count()}}
Total Earning : ${{App\Models\AfterConversionRate::where('payment_type',App\Models\Payment::TYPE_BOOST)->sum('after_amount')}}
Second Take : {{App\Models\AfterConversionRate::where('payment_type',App\Models\Payment::TYPE_SECOND_TAKE)->count()}}
Total Earning : ${{App\Models\AfterConversionRate::where('payment_type',App\Models\Payment::TYPE_SECOND_TAKE)->sum('after_amount')}}
Redo : {{App\Models\AfterConversionRate::where('payment_type',App\Models\Payment::TYPE_RE_DO)->count()}}
Total Earning : ${{App\Models\AfterConversionRate::where('payment_type',App\Models\Payment::TYPE_RE_DO)->sum('after_amount')}}
Extend Chat : {{App\Models\AfterConversionRate::where('payment_type',App\Models\Payment::TYPE_EXTEND_CHAT)->count()}}
Total Earning : ${{App\Models\AfterConversionRate::where('payment_type',App\Models\Payment::TYPE_EXTEND_CHAT)->sum('after_amount')}}
Subscription : {{App\Models\AfterConversionRate::where('payment_type',App\Models\Payment::TYPE_SUBSCRIPTION)->count()}}
Total Earning : ${{App\Models\AfterConversionRate::where('payment_type',App\Models\Payment::TYPE_SUBSCRIPTION)->sum('after_amount')}}
Total Payments : {{App\Models\AfterConversionRate::count()}}
Total Earning : ${{App\Models\AfterConversionRate::sum('after_amount')}}
@include('flash::message')
@include('payments.table')
@endsection