@php use App\Models\ParameterDetail; use App\Constants\PaymentMethod; @endphp @extends('layouts.frontend.index') @section('title', $label) @section('meta_title', $label . ' - ' . Config::get('app.name')) @section('meta_description', 'Berlangganan AturOrder dan nikmati semua fitur canggih untuk mengelola bisnis Anda. Pilih paket yang sesuai dengan kebutuhan Anda dan dapatkan harga promo terbaik!') @section('meta_keywords', 'Berlangganan AturOrder, Beli AturOrder, Paket Software, Order Management SaaS, Bisnis, Manajemen Order, Stok, Pelanggan') @section('content')
@php $package_id = ''; $package_price = 0; @endphp @foreach ($package as $index => $p) @php $price = json_decode($p->value1); $price_monthly = ($price->monthly->discount_rp == 0) ? $price->monthly->price : $price->monthly->discount_rp; $price_yearly = ($price->yearly->discount_rp == 0) ? $price->yearly->price : $price->yearly->discount_rp; $card_active = ''; if ($package_selected == $p->value4) { $card_active = ' active'; $package_id = $p->id; $package_price = $price_monthly; } if ($price->{$time}->discount_rp == 0) { $price_fix = $price->{$time}->price; $price_discount = false; } else { $price_fix = $price->{$time}->discount_rp; $price_discount = true; } @endphp
{{ $p->name }}
@if ($price_discount) Rp {{ number_format($price->{$time}->price, 0, '', '.') }} @endif

Rp {{ number_format($price_fix, 0, '', '.') }}

@endforeach
 Identitas Anda
@if (Auth::check())
Nama Lengkap : {{ Auth::user()->name }}
Email : {{ Auth::user()->email }}
No. Handphone : {{ Common::phoneFormat(Auth::user()->phone) }}
Perusahaan : {{ Auth::user()->entity->type_name }}
Nama Perusahaan : {{ Auth::user()->entity->name }}
Nama Lengkap
{{ Auth::user()->name }}
Email
{{ Auth::user()->email }}
No. Handphone
{{ Common::phoneFormat(Auth::user()->phone) }}
Perusahaan
{{ Auth::user()->entity->type_name }}
Nama Perusahaan
{{ Auth::user()->entity->name }}
@else
 Akun Login
@endif
 Metode Pembayaran
@foreach ($methods as $m) @php $method_payments = ParameterDetail::select('id', 'name', 'value1', 'value2', 'value3') ->whereIdParameter($m->id) ->orderBy('id') ->get(); // if ($m->id == $method->id) { // $method_payment = $method_payments[0]; // $checked = ' checked'; // $bg = '#eeeeee'; // } else { $method_payment = ''; $checked = ''; $bg = '#e6ebef'; // } @endphp
{{ $m->name . ' - ' . Config::get('app.name') }}
@foreach ($method_payments as $p)
{{ $p->name . ' - ' . Config::get('app.name') }}
@endforeach
@endforeach
Sub Total Rp. {{ number_format($package_price, 0, '', '.') }}
Biaya Transaksi Rp. 0
Total Biaya Rp. 0
.....

..... / .....

.....
@endsection @push('styles') @endpush @push('scripts') @endpush