@extends('layouts.app') @section('title', 'Superadmin | Add-on Pricing') @section('content') @include('superadmin::layouts.nav')

Add-on Module Pricing

Set tenant-facing prices

{!! Form::open(['route' => 'superadmin.module_addons.pricing.save', 'method' => 'post']) !!}
@foreach($addons as $index => $addon) @php $price = $prices[$addon['key']] ?? null; @endphp @endforeach
Module Currency Monthly Yearly One-time Active Description
{{ $addon['name'] }}
{{ $addon['key'] }} {!! Form::hidden("prices[$index][module_key]", $addon['key']) !!} {!! Form::hidden("prices[$index][module_name]", $addon['name']) !!}
{!! Form::text("prices[$index][currency]", optional($price)->currency ?? '₹', ['class' => 'form-control', 'style' => 'width:75px;']) !!} {!! Form::number("prices[$index][monthly_price]", optional($price)->monthly_price, ['class' => 'form-control', 'step' => '0.01', 'min' => 0]) !!} {!! Form::number("prices[$index][yearly_price]", optional($price)->yearly_price, ['class' => 'form-control', 'step' => '0.01', 'min' => 0]) !!} {!! Form::number("prices[$index][onetime_price]", optional($price)->onetime_price, ['class' => 'form-control', 'step' => '0.01', 'min' => 0]) !!} {!! Form::textarea("prices[$index][description]", optional($price)->description, ['class' => 'form-control', 'rows' => 2, 'placeholder' => $addon['description']]) !!}
{!! Form::close() !!}
@endsection