BossBey File Manager
PHP:
8.2.30
OS:
Linux
User:
imagivibe
Root
/
.
/
app.imagivibe.com
/
resources
/
views
/
default
/
panel
/
admin
/
market
📤 Upload
📝 New File
📁 New Folder
Close
Editing: extension.blade.php
@php $price_details = [ [ 'label' => 'License', 'value' => 'Lifetime', ], [ 'label' => 'Support & Updates', 'value' => '6 months', ], [ 'label' => 'Installation', 'value' => 'One Click', ], [ 'label' => 'Recently Updated', 'value' => 'Yes', ], ]; @endphp @extends('panel.layout.app', ['disable_tblr' => true]) @section('title', __('Marketplace')) @section('titlebar_actions') <div class="flex flex-wrap gap-2"> <x-button variant="ghost-shadow" href="{{ route('dashboard.admin.marketplace.liextension') }}" > {{ __('Manage Addons') }} </x-button> <x-button href="{{ route('dashboard.admin.marketplace.index') }}"> <x-tabler-plus class="size-4" /> {{ __('Browse Add-ons') }} </span> </x-button> </div> @endsection @section('content') <div class="py-10"> <div class="lqd-extension-details flex flex-col justify-between gap-y-7 md:flex-row"> <x-card class="lqd-extension-details-card relative w-full max-w-none pb-10 lg:w-8/12 [&_hr]:my-5 [&_hr]:border-border" variant="shadow" size="lg" > <img class="mb-8 size-[90px]" src="{{ custom_theme_url($extension->image_url) }}" > <div class="mb-8 flex flex-wrap items-center gap-2"> <h3 class="m-0 text-[23px] font-semibold"> {{ $extension->name }} </h3> @if ($extension->installed) <p class="mb-0 ms-3 flex items-center gap-2 text-2xs font-medium"> <span class="inline-block size-2 rounded-full bg-green-500"></span> {{ __('Installed') }} </p> @endif </div> <div class="mb-10 flex flex-wrap items-center gap-6 text-sm font-medium text-heading-foreground"> <div class="flex items-center gap-1.5"> {{-- blade-formatter-disable --}} <svg width="17" height="16" viewBox="0 0 17 16" fill="none" xmlns="http://www.w3.org/2000/svg" > <path d="M16.7619 7.99999L14.9028 5.87428L15.1619 3.06285L12.4114 2.43809L10.9714 0L8.38094 1.11238L5.79047 0L4.35047 2.43047L1.6 3.04762L1.85905 5.86666L0 7.99999L1.85905 10.1257L1.6 12.9447L4.35047 13.5695L5.79047 16L8.38094 14.88L10.9714 15.9924L12.4114 13.5619L15.1619 12.9371L14.9028 10.1257L16.7619 7.99999ZM6.92571 11.5962L4.03047 8.69332L5.15809 7.56571L6.92571 9.34094L11.3828 4.86857L12.5105 5.99618L6.92571 11.5962Z" fill="#347AE2" /> </svg> {{-- blade-formatter-enable --}} <p class="m-0"> {{ __('Tested with MagicAI') }} </p> </div> <span class="inline-block h-5 w-px bg-foreground/10"></span> <p class="review m-0 flex items-center gap-1"> <x-tabler-star-filled class="size-3" /> {{ number_format($extension->review, 1) }} </p> <span class="inline-block h-5 w-px bg-foreground/10"></span> <div class="flex items-center gap-2"> {{-- blade-formatter-disable --}} <svg width="18" height="18" viewBox="0 0 18 18" fill="currentColor" xmlns="http://www.w3.org/2000/svg"> <path d="M11.7084 3.1665C11.4167 3.1665 11.1702 3.06581 10.9688 2.86442C10.7674 2.66303 10.6667 2.4165 10.6667 2.12484C10.6667 1.83317 10.7674 1.58664 10.9688 1.38525C11.1702 1.18387 11.4167 1.08317 11.7084 1.08317C12 1.08317 12.2465 1.18387 12.4479 1.38525C12.6493 1.58664 12.75 1.83317 12.75 2.12484C12.75 2.4165 12.6493 2.66303 12.4479 2.86442C12.2465 3.06581 12 3.1665 11.7084 3.1665ZM11.7084 16.9165C11.4167 16.9165 11.1702 16.8158 10.9688 16.6144C10.7674 16.413 10.6667 16.1665 10.6667 15.8748C10.6667 15.5832 10.7674 15.3366 10.9688 15.1353C11.1702 14.9339 11.4167 14.8332 11.7084 14.8332C12 14.8332 12.2465 14.9339 12.4479 15.1353C12.6493 15.3366 12.75 15.5832 12.75 15.8748C12.75 16.1665 12.6493 16.413 12.4479 16.6144C12.2465 16.8158 12 16.9165 11.7084 16.9165ZM15.0417 6.08317C14.75 6.08317 14.5035 5.98248 14.3021 5.78109C14.1007 5.5797 14 5.33317 14 5.0415C14 4.74984 14.1007 4.50331 14.3021 4.30192C14.5035 4.10053 14.75 3.99984 15.0417 3.99984C15.3334 3.99984 15.5799 4.10053 15.7813 4.30192C15.9827 4.50331 16.0834 4.74984 16.0834 5.0415C16.0834 5.33317 15.9827 5.5797 15.7813 5.78109C15.5799 5.98248 15.3334 6.08317 15.0417 6.08317ZM15.0417 13.9998C14.75 13.9998 14.5035 13.8991 14.3021 13.6978C14.1007 13.4964 14 13.2498 14 12.9582C14 12.6665 14.1007 12.42 14.3021 12.2186C14.5035 12.0172 14.75 11.9165 15.0417 11.9165C15.3334 11.9165 15.5799 12.0172 15.7813 12.2186C15.9827 12.42 16.0834 12.6665 16.0834 12.9582C16.0834 13.2498 15.9827 13.4964 15.7813 13.6978C15.5799 13.8991 15.3334 13.9998 15.0417 13.9998ZM16.2917 10.0415C16 10.0415 15.7535 9.94081 15.5521 9.73942C15.3507 9.53803 15.25 9.2915 15.25 8.99984C15.25 8.70817 15.3507 8.46164 15.5521 8.26025C15.7535 8.05886 16 7.95817 16.2917 7.95817C16.5834 7.95817 16.8299 8.05886 17.0313 8.26025C17.2327 8.46164 17.3334 8.70817 17.3334 8.99984C17.3334 9.2915 17.2327 9.53803 17.0313 9.73942C16.8299 9.94081 16.5834 10.0415 16.2917 10.0415ZM9.00002 17.3332C7.84724 17.3332 6.76391 17.1144 5.75002 16.6769C4.73613 16.2394 3.85419 15.6457 3.10419 14.8957C2.35419 14.1457 1.76044 13.2637 1.32294 12.2498C0.885437 11.2359 0.666687 10.1526 0.666687 8.99984C0.666687 7.84706 0.885437 6.76373 1.32294 5.74984C1.76044 4.73595 2.35419 3.854 3.10419 3.104C3.85419 2.354 4.73613 1.76025 5.75002 1.32275C6.76391 0.885254 7.84724 0.666504 9.00002 0.666504V2.33317C7.13891 2.33317 5.56252 2.979 4.27085 4.27067C2.97919 5.56234 2.33335 7.13873 2.33335 8.99984C2.33335 10.8609 2.97919 12.4373 4.27085 13.729C5.56252 15.0207 7.13891 15.6665 9.00002 15.6665V17.3332ZM9.00002 10.6665C8.54169 10.6665 8.14933 10.5033 7.82294 10.1769C7.49655 9.85053 7.33335 9.45817 7.33335 8.99984C7.33335 8.93039 7.33683 8.85748 7.34377 8.78109C7.35071 8.7047 7.36808 8.63178 7.39585 8.56234L5.66669 6.83317L6.83335 5.6665L8.56252 7.39567C8.61808 7.38178 8.76391 7.36095 9.00002 7.33317C9.45835 7.33317 9.85071 7.49637 10.1771 7.82275C10.5035 8.14914 10.6667 8.5415 10.6667 8.99984C10.6667 9.45817 10.5035 9.85053 10.1771 10.1769C9.85071 10.5033 9.45835 10.6665 9.00002 10.6665Z"/> </svg> {{-- blade-formatter-enable --}} <p class="m-0"> {{ __('Recently Updated') }} </p> </div> </div> <h3 class="mb-7"> {{ __('About this add-on') }} </h3> <div class="prose prose-sm mb-8 max-w-none"> {!! $extension->detail !!} </div> <div class="mb-11 flex flex-col gap-4"> @php $tags = explode(',', $extension->category); @endphp @foreach ($tags as $tag) <p class="my-0 flex items-center gap-3 text-base font-medium"> <span class="me-1 inline-flex size-6 items-center justify-center rounded-xl bg-primary/[8%] align-middle text-primary dark:bg-secondary/15 dark:text-secondary-foreground" > <x-tabler-check class="size-3.5" /> </span> {{ $tag }} </p> @endforeach </div> @if (!empty($extensionQAs)) <div> <h3 class="mb-7"> {{ __('Have a question?') }} </h3> <div class="lqd-accordion flex flex-col gap-4" x-data="{ activeIndex: 0 }" > @foreach ($extensionQAs as $extensionQA) <div class="lqd-accordion-item rounded-2xl border [&.lqd-is-active]:shadow-lg [&.lqd-is-active]:shadow-black/5" data-index="{{ $loop->index }}" :class="{ 'lqd-is-active': activeIndex == '{{ $loop->index }}' }" > <button class="lqd-accordion-trigger flex w-full items-center justify-between gap-4 px-7 py-4 text-start text-base font-semibold leading-tight text-heading-foreground" data-index="{{ $loop->index }}" @click.prevent="activeIndex = activeIndex == '{{ $loop->index }}' ? null : '{{ $loop->index }}'" > {{ __($extensionQA['question']) }} <x-tabler-chevron-down class="ms-auto size-5 shrink-0" /> </button> <div @class([ 'lqd-accordion-content px-7', 'hidden' => $loop->index != 0, 'lqd-is-active' => $loop->index == 0, ]) :class="{ 'hidden': activeIndex != {{ $loop->index }} }" > <div class="lqd-accordion-content-inner pb-4"> <p class="text-sm leading-relaxed opacity-80"> {{ $extensionQA['answer'] }} </p> </div> </div> </div> @endforeach </div> </div> @endif </x-card> <div class="flex w-full flex-col gap-8 lg:w-4/12 lg:ps-8"> <x-card class="lqd-extension-price-card text-center" size="lg" > <h4 class="mb-6"> {{ __('Limited Offer') }} </h4> @if ($extension->price != 0) <div class="mb-5"> <p class="text-4xl font-semibold leading-none"> @if (currencyShouldDisplayOnRight(currency()->symbol)) {{ $extension->price }} $ @if ($extension->fake_price) <small class="text-[18px] line-through" style="text-decoration: line-through;" >{{ $extension->fake_price }}$</small> @endif @else ${{ $extension->price }} @if ($extension->fake_price) <small class="text-[18px] line-through" style="text-decoration: line-through;" >${{ $extension->fake_price }} </small> @endif @endif </p> <p class="m-0 text-2xs font-semibold text-foreground/40"> {{ __('For a limited time only') }} </p> </div> @else <p class="mb-5 text-4xl font-semibold leading-none text-heading-foreground"> {{ __('Free') }} </p> @endif <p class="mb-6 text-2xs opacity-60"> {{ __('Price is in US dollars. Tax included.') }} </p> @if ($extension->price != 0) @if ($app_is_demo) <x-button class="w-full" size="lg" href="#" onclick="return toastr.info('This feature is disabled in Demo version.')" disabled > {{ __('Buy Now') }} </x-button> @else @php $is_license = $extension->licensed == 1; @endphp <x-button class="w-full" :disabled="$is_license" size="lg" href="{{ route('dashboard.admin.marketplace.buyextesion', ['slug' => $extension->slug]) }}" > {{ __('Buy Now') }} </x-button> @endif @else <x-button class="w-full" size="lg" href="{{ route('dashboard.admin.marketplace.liextension') }}" > {{ __('Install Now') }} </x-button> @endif </x-card> <x-card class="lqd-extension-price-details" size="lg" > <h4 class="mb-6 border-b pb-3"> {{ __('Details') }} </h4> <div class="grid grid-cols-2 gap-4"> @foreach ($price_details as $detail) <div class="lqd-extension-price-detail flex flex-col rounded-xl border px-4 py-3 font-semibold"> <p class="mb-6 text-4xs uppercase tracking-widest text-heading-foreground opacity-70"> {{ __($detail['label']) }} </p> <p class="mt-auto text-heading-foreground"> {{ __($detail['value']) }} </p> </div> @endforeach </div> </x-card> </div> </div> </div> @endsection @push('script') <script src="{{ custom_theme_url('/assets/js/panel/marketplace.js') }}"></script> @endpush
Save
Cancel