@if (!Gate::check('disable_pay_checkout') || auth()->user()->can('superadmin') || auth()->user()->can('admin'))
@endif
@if (!Gate::check('disable_express_checkout') || auth()->user()->can('superadmin') || auth()->user()->can('admin'))
@endif
@if (empty($edit))
@else
@endif
@if (!Gate::check('disable_draft') || auth()->user()->can('superadmin') || auth()->user()->can('admin'))
@endif
@if (!Gate::check('disable_quotation') || auth()->user()->can('superadmin') || auth()->user()->can('admin'))
@endif
@if (!Gate::check('disable_suspend_sale') || auth()->user()->can('superadmin') || auth()->user()->can('admin'))
@if (empty($pos_settings['disable_suspend']))
@endif
@endif
@if (!Gate::check('disable_credit_sale') || auth()->user()->can('superadmin') || auth()->user()->can('admin'))
@if (empty($pos_settings['disable_credit_sale_button']))
@endif
@endif
@if (!Gate::check('disable_card') || auth()->user()->can('superadmin') || auth()->user()->can('admin'))
@endif
@if (!Gate::check('disable_pay_checkout') || auth()->user()->can('superadmin') || auth()->user()->can('admin'))
@endif
@php
$business = auth()->user()->business;
$payment_settings = \DB::table('payment_settings')
->where('business_id', $business->id)
->first();
// Consider empty if null, empty string, or empty JSON array
$show_mpesa_btn = $payment_settings
&& !empty($payment_settings->payment_options)
&& $payment_settings->payment_options !== '[]';
@endphp
@if($show_mpesa_btn)
@endif
@if (!Gate::check('disable_express_checkout') || auth()->user()->can('superadmin') || auth()->user()->can('admin'))
@endif
@if (empty($edit))
@else
@endif
@if (!$is_mobile)
{{--
@lang('sale.total_payable')
0
--}}
@endif
@if (!isset($pos_settings['hide_recent_trans']) || $pos_settings['hide_recent_trans'] == 0)
@endif