@extends('app') @section('content') @include('layout.admin_sidebar')
Payment Plans
@include('pages.adminPanel.stripeTabs.stripeMenu')
@if ($data && (is_array($data) ? count($data) : $data->count()) > 0) @foreach ($data as $item) @endforeach @else @endif
# Plan Name Monthly Price Monthly Price Split -Retained by FMS /Pay out for Fundraiser Annual Price Annual Price Split -Retained by FMS / Pay out for Fundraiser Platform Fee Status Actions
{{ $loop->iteration }} {{ $item['name'] }} {{ '$' . number_format(floatval(str_replace(['$', ','], '', $item['monthly_amount'])), 2) }} @php $monthlyTaken = !empty($item['monthly_taken']) ? floatval(str_replace(['$', ','], '', $item['monthly_taken'])) : 0; $monthlyAmount = !empty($item['monthly_amount']) ? floatval(str_replace(['$', ','], '', $item['monthly_amount'])) : 0; $difference = $monthlyAmount - $monthlyTaken; @endphp {{ '$' . number_format($monthlyTaken, 2) }} / ${{ number_format($difference, 2) }} {{ '$' . number_format(floatval(str_replace(['$', ','], '', $item['yearly_amount'])), 2) }} {{ '$' . number_format(floatval(str_replace(['$', ','], '', $item['yearly_taken'])), 2) }} / @php $annuallyAmount = floatval( str_replace(['$', ','], '', $item['yearly_amount']), ); $annuallyTaken = floatval( str_replace(['$', ','], '', $item['yearly_taken']), ); $difference = $annuallyAmount - $annuallyTaken; @endphp ${{ number_format($difference, 2) }} {{ '$' . number_format(floatval(str_replace(['$', ','], '', $item['platformfee'])), 2) }}
Edit
No Payment Plans Are Available.
@if ($data && (is_array($data) ? count($data) : $data->count()) > 0) @foreach ($data as $key => $item)
{{ $loop->iteration }} {{ $item['name'] }}
Monthly Price: ${{ number_format(floatval(str_replace(['$', ','], '', $item['monthly_amount'])), 2) }}
Monthly Price Split - Retained by FMS / Pay out for Fundraiser @php $monthlyTaken = !empty($item['monthly_taken']) ? floatval(str_replace(['$', ','], '', $item['monthly_taken'])) : 0; $monthlyAmount = !empty($item['monthly_amount']) ? floatval(str_replace(['$', ','], '', $item['monthly_amount'])) : 0; $difference = $monthlyAmount - $monthlyTaken; @endphp ${{ number_format($monthlyTaken, 2) }} / ${{ number_format($difference, 2) }}
Annual Price: ${{ number_format(floatval(str_replace(['$', ','], '', $item['yearly_amount'])), 2) }}
Annual Price Split - Retained by FMS /Pay out for Fundraiser ${{ number_format(floatval(str_replace(['$', ','], '', $item['yearly_taken'])), 2) }} /$ @php $annuallyAmount = floatval( str_replace(['$', ','], '', $item['yearly_amount']), ); $annuallyTaken = floatval( str_replace(['$', ','], '', $item['yearly_taken']), ); $difference = $annuallyAmount - $annuallyTaken; @endphp {{ number_format($difference, 2) }}
Platform Fee: ${{ number_format(floatval(str_replace(['$', ','], '', $item['platformfee'])), 2) }}
Actions:
Edit
@endforeach @else No Payment Plans Are Available. @endif
@if ($data && (is_array($data) ? count($data) : $data->count()) > 0)
@endif
Add Plan
Edit Plan
@vite(['resources/js/pages/admin_dashboard.js']) @vite(['resources/js/admin_panel/donor_user.js']) @vite(['resources/js/admin_panel/addform_sidepanel.js']) @vite(['resources/js/admin_panel/pagination.js']) @vite(['resources/js/admin_panel/paginationmobile.js']) @vite(['resources/js/admin_panel/stripe/payment_plan.js']) @endsection