@if ($overviewBond['bond'])
@if ($overviewBond['bond']->status == 'draft' || $overviewBond['bond']->status == 'unmet') @can('warehouses-salesOrders-edit') @lang('general.edit') @endcan @endif

SALES ORDER

Order #: {{ $overviewBond['bond']->bond_number }}
Order Date : {{ $overviewBond['bond']->date }}
Customer: {{ $overviewBond['bond']->client_name }}
@if ($overviewBond['bond']->client)
Account # : {{ $overviewBond['bond']->client->id_by_receivable_type }}
@endif
@if ($overviewBond['bond']->client)
Customer phone: {{ $overviewBond['bond']->client->phone_1 }}
@endif
Address : @if ($overviewBond['bond']->client && is_array($overviewBond['bond']->client->address)) city: {{ $overviewBond['bond']->client->address['city'] ?? '---' }} / area:{{ $overviewBond['bond']->client->address['region'] ?? '---' }} / address:{{ $overviewBond['bond']->client->address['address'] ?? '---' }} @else --- @endif
F.O.Payment: {{ $overviewBond['bond']->client_type == 'cash' ? 'نقدي' : 'ذمة' }}
Payment way: {{ $overviewBond['bond']->selected_payment_way ?? '---' }}
Accured date: {{ $overviewBond['bond']->accured_date }}
Delivered date: {{ $overviewBond['bond']->delivered_date }}
Notes :{{ $overviewBond['bond']->notice }}

Items

@if ($overviewBond['add_location_in_print']) @endif @php $total_amount_before_normal_discounts = 0; $total_extra_discounts = 0; $tax_amounts_total = 0; $client_discount = 0; @endphp @foreach ($overviewBond['bond']->items as $item) @php $total_amount_before_normal_discounts += $item->price_after_discount * $item->quantity; $total_extra_discounts += $item->extra_discount_amount ? $item->extra_discount_amount * $item->quantity : 0; $client_discount += ($overviewBond['bond']->client_discount_ratio / 100) * $item->total_final_price; $tax_amount = $item->tax_ratio ? $item->total_final_price * ($item->tax_ratio / 100) : 0; $tax_amounts_total += $tax_amount; @endphp @if ($overviewBond['add_location_in_print']) @endif @if ($item->bonus) @endif @endforeach
Barcode # Item Location Available Quantity Name Unit Qty Sale price Dis. amount Gross Price Tax Amount Expiry date Serial code Notes
{{ $item->barcode->number }} @foreach ($item->barcode->locations as $location) @if ($location->branch_id == $overviewBond['bond']->branch->id) {{ $location->hall . '-' . $location->line . '-' . $location->shelf }} @endif @endforeach {{ $item->barcode->available_quantity }} {{ $item->barcode->ar_name }} {{ $item->barcode->unit->name }} {{ dn($item->quantity) }} {{ dn($item->price) }} {{ dn($item->total_discounts) }} {{ dn($item->total_final_price) }} {{ $item->tax_ratio ? $item->tax_ratio . '%' : '---' }} {{ dn($item->total_final_price + $tax_amount) }} {{ $item->expire_date }} @if (is_array($item->serial_items) && count($item->serial_items))
@csrf
@else --- @endif
{{ $item->notice }}
{{ $item->barcode->number }} {{ $item->barcode->ar_name }} {{ $item->barcode->unit->name }} {{ dn($item->bonus) }} {{ dn(0) }} {{ dn(0) }} {{ dn(0) }} {{ dn(0) }} {{ $item->expire_date }} --- {{ $item->notice }}
@if ($overviewBond['bond']->expenses->isNotEmpty())

Expenses

@php $total = 0; @endphp @foreach ($overviewBond['bond']->expenses as $item) @php $total+= $item->amount; @endphp @endforeach
Expenses Amount Account
{{ $item->standard_expenses->name }} {{ dn($item->amount) }} {{ $item->standard_expenses->account->name }}
Total {{ dn($total) }}
@endif

Sales orders conditions:

@php $ar_sales_order_conditions = \App\Models\Setting::whereName('ar_sales_order_conditions')->first()->value; @endphp
    @foreach ($ar_sales_order_conditions as $sales_order_condition)
  • {{ $sales_order_condition }}
  • @endforeach

Ammount befor addtional discount: {{ dn($total_amount_before_normal_discounts) }}
Additional discount : {{ dn($total_extra_discounts) }}
Client's discount : {{ dn($client_discount) }}
Amount after additional discount: {{ dn($total_amount_before_normal_discounts - ($total_extra_discounts + $client_discount)) }}
Tax {{ dn($tax_amounts_total) }}
Total {{ dn($total_amount_before_normal_discounts - ($total_extra_discounts + $client_discount) + $tax_amounts_total) }}

Accured name

Accoured Signature-------------------

@if (Session::get('print_data')['under_tax']) All prices above are subject to general tax @endif
@endif @push('script') @endpush