Bill To : {{ $selling->customer ? $selling->customer->name ?? '-' : '-' }}
{{ $selling->customer ? $selling->customer->address ?? '-' : '-' }}
INVOICE
Number : {{ $selling->code ?? "-" }}
Date : {{ now()->parse($selling->date)->format("d M Y") }}
Payment Term : {{ $selling->payment_term ?? '-'}}
Due Date : @if($selling->due_date) {{ now()->parse($selling->due_date)->format("d m Y") }} @else - @endif
Sales Rep. : {{$selling->seller ? $selling->seller->name : "-"}}
Currency : IDR
@php $no = 1; @endphp @foreach($selling->selling_details as $item) @endForeach
NO ITEM DESCRIPTION QTY PRICE/UNIT AMOUNT
{{ $no++ }} {{ $item->product ? $item->product->name : "-" }}
@if($item->product) {{ $item->product->description ?? "-" }} @else - @endif
Disc {{ $item->discount }} @if($selling->discount_type == "NOMINAL") *Rp @else % @endif
{{ number_format($item->quantity ?? 0,2,',','.') }} ( {{ $item->product ? $item->product->selling_unit : "-"}} ) {{ number_format($item->price ?? 0,2,',','.') }} {{ number_format($item->amount ?? 0,2,',','.') }}
Note :
{{ $selling->description ?? "-" }}
> @if($selling->discount > 0.00) @if($selling->discount_type == "NOMINAL") @else @endif @endif @if($selling->dp > 0.00) @endif {{-- @if($selling->cash > 0.00) @endif --}}
AMOUNT TOTAL {{ number_format($selling->total ?? 0,2,',','.') }}
DISCOUNTS @if($selling->discount_type == "NOMINAL") *Rp @else % @endif {{ number_format($selling->discount ?? 0,2,',','.') }}
TOTAL AFTER DISCOUNTS {{ number_format(ceil(floatval($selling->total) - floatval($selling->discount))?? 0,2,',','.') }}
TOTAL AFTER DISCOUNTS {{ number_format(ceil(floatval($selling->total) - (floatval($selling->total)) * (floatval($selling->discount) / 100.00)) ?? 0,2,',','.') }}
CHARGE {{ number_format($selling->tax ?? 0,2,',','.') }}
GRAND TOTAL {{ number_format($selling->grand_total ?? 0,2,',','.') }}
FIXED PRICE {{ number_format($selling->fixed_price ?? 0,2,',','.') }}
GRAND TOTAL AFTER FIXED PRICE {{ number_format(floatval($selling->grand_total) + floatval($selling->fixed_price),2,',','.') }}
DP {{ number_format($selling->dp ?? 0,2,",",".") }}
GRAND TOTAL AFTER DP {{ number_format((floatval($selling->grand_total) + floatval($selling->fixed_price))- floatval($selling->dp) ?? 0,2,',','.') }}
CASH {{ number_format($selling->cash ?? 0,2,',','.') }}
GRAND TOTAL AFTER CASH {{ number_format( ( ( (floatval($selling->grand_total) + floatval($selling->fixed_price)) - floatval($selling->dp) ) - floatval($selling->cash) ) ?? 0,2,',','.') }}
ONGKIR {{ number_format($selling->shipping_charge ?? 0,2,',','.') }}
{{--
{{ $setting->first(function($item){ return $item->name == "bank_name"; })->value }}
AAC No {{ $setting->first(function($item){ return $item->name == "bank_no"; })->value }}
Holder {{ $setting->first(function($item){ return $item->name == "bank_account"; })->value }}
--}}
Sincarely
THANK YOU