@extends('layouts.app', [ 'navTitle' => 'Előfizetés', 'pageTitle' => 'Előfizetés', 'seoTitle' => 'Előfizetés', 'seoDesc' => 'Előfizetés', 'pageImageRelativeUrl' => '', 'navBackgroundDesktop' => 'pay/nav-background-desktop.webp', 'navBackgroundMobile' => 'pay/nav-background-mobile.webp', 'menuIndex' => -1, ]) @php use App\Models\Setting; use Carbon\Carbon; $startDate = Carbon::now(); $monthsToAdd = match (request()->get('interval')) { '0' => 1, '1' => 6, '2' => 12, default => 0, }; $expiryDate = $startDate->copy()->addMonths($monthsToAdd); $price = $subscriptionPackage->price; switch (request()->get('interval')) { case '1': $price = $price * 6 * ((100 - (int) Setting::getValue('package_half_year_discount')) / 100); break; case '2': $price = $price * 12 * ((100 - (int) Setting::getValue('package_year_discount')) / 100); } @endphp @section('content')
@endsection