@extends('backend.layouts.app') @section('content')
@if (isset($listPackages['id']))

Update a Plan

@else

Create a New Plan

@endif
{{ csrf_field() }} @if (isset($listPackages['id'])) @endif
1
Plan Basics
2
Messages
3
Features
4
Pricing & Billing

Plan Basics

Define the basic information for your subscription plan

@if (isset($listPackages['icon']) and !empty($listPackages['icon'])) @else @endif

No File Chosen

Please upload square image, size less than 100KB

Define Plan Name

Display Name

Account Type

{{ $listPackages['name'] ?? 'Plan Name' }}

{{ $listPackages['description'] ?? 'Plan description will appear here' }}

Plan Duration: {{ $listPackages['billing_cycle'] ?? '0' }} Days

{{--
--}}

Plan Summary

No. of Features

0

Sub Totals

$0

Subscription

0 Days

Discount

$0


Total

$0

Message

Configure verification messages for different business types

@php $businessType = [ 'Manufacturer', 'Agents and Representative', 'Distributors', 'Retailer', 'Wholesaler', 'Reseller', 'Others', ]; $badgeData = []; if (isset($listPackages['badge']) and !empty($listPackages['badge'])) { $badgeData = json_decode($listPackages['badge'], true); } @endphp
@foreach ($businessType as $type) @php $verifiedMessage = ''; $unverifiedMessage = ''; // Find existing data for this business type if (!empty($badgeData)) { foreach ($badgeData as $badge) { if ( isset($badge['business_type']) && $badge['business_type'] == $type ) { $verifiedMessage = $badge['verified_message'] ?? ''; $unverifiedMessage = $badge['unverified_message'] ?? ''; break; } } } @endphp
{{ $type }}
@endforeach

{{ $listPackages['name'] ?? 'Plan Name' }}

{{ $listPackages['description'] ?? 'Plan description will appear here' }}

Plan Duration: {{ $listPackages['billing_cycle'] ?? '0' }} Days

{{--
--}}

Plan Summary

No. of Features

0

Sub Totals

$0

Subscription

0 Days

Discount

$0


Total

$0

Select Features

Choose the features to include in this plan

{{ $listPackages['name'] ?? 'Plan Name' }}

{{ $listPackages['description'] ?? 'Plan description will appear here' }}

Plan Duration: {{ $listPackages['billing_cycle'] ?? '0' }} Days

{{--
--}}

Plan Summary

No. of Features

0

Sub Totals

$0

Subscription

0 Days

Discount

$0


Total

$0

Pricing & Billing

Configure pricing, billing, and other details for your plan

Billing Cycle(Frequency)

Days Remaining

Payment Gateway

Discount Type

Total Discount

Sorting

Pick the Color

Plan Description

{{ $listPackages['name'] ?? 'Plan Name' }}

{{ $listPackages['description'] ?? 'Plan description will appear here' }}

Plan Duration: {{ $listPackages['billing_cycle'] ?? '0' }} Days

Plan Summary

No. of Features

0

Sub Totals

$0

Subscription

0 Days

Discount

$0


Total

$0

@endsection @section('script') @endsection