Format Standard Pesan Pembayaran Lunas
{{ __('device.button.cancel') }} {{ __('device.button.update') }}
@php $websystem = \App\Models\Websystem::first(); $replace = [ '%company%' => env('APP_NAME'), '%name%' => auth()->user()->full_name, '%email%' => auth()->user()->email, '%address%' => auth()->user()->user_address->address, '%customer_id%' => auth()->user()->id, '%invoice_number%' => 'INV-12345678', '%transaction_id%' => 'TR-12345678', '%paket%' => \App\Models\Pakets\Paket::where('price', '>', 0)->first()->name ?? ' Nama Paket', '%periode%' => \Carbon\Carbon::now()->startOfMonth()->format('d F Y - ') . \Carbon\Carbon::now()->endOfMonth()->format('d F Y'), '%bill%' => 'Rp.' . number_format(\App\Models\Pakets\Paket::where('price', '>', 0)->first()->price ?? 250000, 2), '%teller%' => auth()->user()->full_name, '%payment_time%' => Carbon\Carbon::now()->format('d F Y H:i:s'), '%payment_methode%' => 'Cash', '%company_name%' => env('APP_NAME'), '%company_address%' => $websystem->address, '%company_phone%' => $websystem->phone ]; $message = str_replace(array_keys($replace), $replace, $input['pesan']); @endphp