@extends('frontend::layouts.master') @section('title') {{ __('messages.pay_per_view') }} @endsection @section('content')
@csrf
@php $payment_methods = [ 'str_payment_method' => 'stripe', 'razor_payment_method' => 'razorpay', 'paystack_payment_method' => 'paystack', 'paypal_payment_method' => 'paypal', 'flutterwave_payment_method' => 'flutterwave', 'cinet_payment_method' => 'cinet', 'sadad_payment_method' => 'sadad', 'airtel_payment_method' => 'airtel', 'phonepe_payment_method' => 'phonepe', 'midtrans_payment_method' => 'midtrans', ]; @endphp @foreach ($payment_methods as $setting => $method) @if (setting($setting) == 1)
@endif @endforeach
{{ __('frontend.payment_details') }}
{{ __('frontend.price') }}
{{ Currency::format($data->price) }}
{{ __('messages.lbl_discount') }}
{{ Currency::format(($data->price * $data->discount) / 100) }}
{{ __('frontend.total') }}
{{ Currency::format($data->price - ($data->price * $data->discount) / 100) }}
{{ __('frontend.total_payment') }}
{{ Currency::format($data->price - ($data->price * $data->discount) / 100) }}

{{ __('frontend.payment_secure') }}

@endsection