{{ $this->form }}
Simpan Pengaturan
{{-- PREVIEW --}}

Preview Harga — RumahOTP

@foreach([1000, 1800, 2500, 5000, 10000] as $price) @php $final = \App\Filament\Pages\MarginSettings::applyMargin($price, 'rumahotp'); $profit = $final - $price; @endphp @endforeach
Harga Asli Harga Setelah Margin Keuntungan
Rp {{ number_format($price,0,',','.') }} Rp {{ number_format($final,0,',','.') }} @if($profit > 0) +Rp {{ number_format($profit,0,',','.') }} @else — @endif

Preview Harga — Digiflazz (Top Up Game)

@foreach([1000, 1800, 2500, 5000, 10000] as $price) @php $final = \App\Filament\Pages\MarginSettings::applyMargin($price, 'digiflazz'); $profit = $final - $price; @endphp @endforeach
Harga Modal Harga Jual Keuntungan
Rp {{ number_format($price,0,',','.') }} Rp {{ number_format($final,0,',','.') }} @if($profit > 0) +Rp {{ number_format($profit,0,',','.') }} @else — @endif