@extends('layouts.app') @section('title', $page_title ?? __('lang_v1.all_sales')) @section('content')

{{ $page_heading ?? __('sale.sells') }} @lang('lang_v1.all')

@if(!empty($is_downpayment))

Downpayment workspace

Create orders in POS, collect open balances here, and fulfill fully paid pre-orders after stock arrives.

Partial = balance open Paid + no stock = pre-order Paid + stock = sale
@endif @component('components.filters', ['title' => __('report.filters')]) @include('sell.partials.sell_list_filters') @if ($payment_types)
{!! Form::label('payment_method', __('lang_v1.payment_method') . ':') !!} {!! Form::select('payment_method', $payment_types, null, [ 'class' => 'form-control select2', 'style' => 'width:100%', 'placeholder' => __('lang_v1.all'), ]) !!}
@endif @if (!empty($sources))
{!! Form::label('sell_list_filter_source', __('lang_v1.sources') . ':') !!} {!! Form::select('sell_list_filter_source', $sources, null, [ 'class' => 'form-control select2', 'style' => 'width:100%', 'placeholder' => __('lang_v1.all'), ]) !!}
@endif @endcomponent @component('components.widget', ['class' => 'box-primary', 'title' => $page_title ?? __('lang_v1.all_sales')]) @if((!empty($is_downpayment) && auth()->user()->can('downpayment.create')) || (empty($is_downpayment) && auth()->user()->can('direct_sell.access'))) @slot('tool')
{{ $create_button_label ?? __('messages.add') }}
@endslot @endif @if ((!empty($is_downpayment) && auth()->user()->hasAnyPermission([ 'downpayment.view', 'downpayment.update', 'downpayment.fulfill', 'downpayment.delete', ])) || (empty($is_downpayment) && ( auth()->user()->can('direct_sell.view') || auth()->user()->can('view_own_sell_only') || auth()->user()->can('view_commission_agent_sell') ))) @php $custom_labels = json_decode(session('business.custom_labels'), true); @endphp {{-- Keep footer cell count aligned with thead columns to avoid misaligned totals when scrolling. --}} {{-- payment_image --}} {{-- total_items --}} {{-- types_of_service --}} {{-- service_custom_field_1 --}} {{-- custom_field_1 --}} {{-- custom_field_2 --}} {{-- custom_field_3 --}} {{-- custom_field_4 --}} {{-- added_by --}} {{-- sell_note --}} {{-- staff_note --}} {{-- shipping_details --}} {{-- table --}} {{-- service_staff --}}
Rcv @lang('messages.action') @lang('messages.date') Status @lang('sale.invoice_no') @lang('sale.customer_name') @lang('lang_v1.location_no') @lang('sale.location') @lang('sale.payment_status') @lang('lang_v1.payment_method') @lang('lang_v1.payment_image') @lang('sale.total_amount') @lang('sale.total_paid') @lang('lang_v1.store_credit_paid_amount') @lang('lang_v1.sell_due') Cash Refund Store Credit @lang('lang_v1.total_items') @lang('lang_v1.types_of_service') {{ $custom_labels['types_of_service']['custom_field_1'] ?? __('lang_v1.service_custom_field_1') }} {{ $custom_labels['sell']['custom_field_1'] ?? '' }} {{ $custom_labels['sell']['custom_field_2'] ?? '' }} {{ $custom_labels['sell']['custom_field_3'] ?? '' }} {{ $custom_labels['sell']['custom_field_4'] ?? '' }} @lang('lang_v1.added_by') @lang('sale.sell_note') @lang('sale.staff_note') @lang('sale.shipping_details') @lang('restaurant.table') @lang('restaurant.service_staff')
@endif @endcomponent
@stop @section('javascript') @endsection