@@ -433,6 +433,30 @@ class="block text-sm text-gray-500 file:mr-4 file:rounded-md file:border-0 file:
433433 </flux:tab .group >
434434 @elseif ($plugin -> isApproved () )
435435 {{-- Editable fields for Approved plugins (no tabs) --}}
436+
437+ {{-- Read-only Type & Tier --}}
438+ <flux:card class =" mb-6" >
439+ <div class =" flex items-center justify-between" >
440+ <div >
441+ <flux:heading size =" lg" >Type</flux:heading >
442+ <flux:text class =" mt-1" >
443+ @if ($plugin -> isPaid () && $plugin -> tier )
444+ @php
445+ $prices = $plugin -> tier -> getPrices ();
446+ $subscriberPrice = $prices [\App \Enums \PriceTier:: Subscriber -> value ] / 100 ;
447+ $regularPrice = $prices [\App \Enums \PriceTier:: Regular -> value ] / 100 ;
448+ @endphp
449+ Paid &mdash ; {{ $plugin -> tier -> label () } } (${{ number_format ($subscriberPrice ) } } – ${{ number_format ($regularPrice ) } } )
450+ @elseif ($plugin -> isPaid () )
451+ Paid
452+ @else
453+ Free
454+ @endif
455+ </flux:text >
456+ </div >
457+ </div >
458+ </flux:card >
459+
436460 <form wire:submit =" save" class =" space-y-6" >
437461 {{-- Display Name --}}
438462 <flux:card >
@@ -449,22 +473,6 @@ class="block text-sm text-gray-500 file:mr-4 file:rounded-md file:border-0 file:
449473 </div >
450474 </flux:card >
451475
452- {{-- Support Channel --}}
453- <flux:card >
454- <flux:heading size =" lg" >Support</flux:heading >
455- <flux:text class =" mt-1" >How can users get support for your plugin? Provide an email address or a URL.</flux:text >
456-
457- <div class =" mt-4" >
458- <flux:input
459- wire:model =" supportChannel"
460- placeholder =" support@example.com or https://..."
461- />
462- @error (' supportChannel' )
463- <flux:text class =" mt-1 text-sm text-red-600 dark:text-red-400" >{{ $message } } </flux:text >
464- @enderror
465- </div >
466- </flux:card >
467-
468476 {{-- Description --}}
469477 <flux:card >
470478 <flux:heading size =" lg" >Description</flux:heading >
@@ -574,6 +582,22 @@ class="block text-sm text-gray-500 file:mr-4 file:rounded-md file:border-0 file:
574582 </div >
575583 </flux:card >
576584
585+ {{-- Support Channel --}}
586+ <flux:card >
587+ <flux:heading size =" lg" >Support</flux:heading >
588+ <flux:text class =" mt-1" >How can users get support for your plugin? Provide an email address or a URL.</flux:text >
589+
590+ <div class =" mt-4" >
591+ <flux:input
592+ wire:model =" supportChannel"
593+ placeholder =" support@example.com or https://..."
594+ />
595+ @error (' supportChannel' )
596+ <flux:text class =" mt-1 text-sm text-red-600 dark:text-red-400" >{{ $message } } </flux:text >
597+ @enderror
598+ </div >
599+ </flux:card >
600+
577601 {{-- Save Button --}}
578602 <div class =" flex items-center justify-end" >
579603 <flux:button type =" submit" variant =" primary" >Save Changes</flux:button >
0 commit comments