{{-- Boostrap --}} {{-- FontAwesome para iconos --}} {{-- Jquery --}} {{-- AJAX --}} {{-- Import Hotel Settings Control --}} {{-- My Styles --}}
{{-- Logo --}} @if (Auth::user()->profile_photo === null) @else @endif {{-- Titulo --}}

@if($hotel->business_name != '') {{$hotel->business_name}}
@endif - {{ __('tickets')['restaurant']['title'] }} -

{{-- Detalles Generales --}}

Folio:   {{ $order->id }} @if($hotel->business_address != '')
{{ __('tickets')['restaurant']['address'] }}  {{$hotel->business_address}} @endif

{{ __('tickets')['restaurant']['table'] }}  {{ $order->order_table }}
{{ __('tickets')['restaurant']['cashier'] }}  {{ $order->order_cashier }}
{{ __('tickets')['restaurant']['date'] }} {{ $order->order_date->format('Y-m-d, H:i'); }}

{{-- Resumen del Pedido --}} {{-- Illusionary Divisor --}} {{-- Productos Solicitados --}} @foreach($commands as $command) @endforeach {{-- Illusionary Divisor --}}
{{ __('tickets')['restaurant']['quantity'] }} {{ __('tickets')['restaurant']['product'] }} {{ __('tickets')['restaurant']['price'] }} {{ __('tickets')['restaurant']['subtotal'] }}
{{ $command->item_quantity }} {{ $command->item }} {{ \App\Helpers\Formats\FormatCurrencyHelper::formatCurrency( number_format($command->item_price, 2) ) }} {{ \App\Helpers\Formats\FormatCurrencyHelper::formatCurrency( number_format($command->subtotal, 2) ) }}
{{-- Importes --}} @php $has_discounts = \App\Helpers\Environment\SystemFeaturesHelper::getFeatureStatus("discounts"); $has_discount_applied = $order->order_discount_percentage !== null && $order->order_discount_percentage > 0.0; @endphp

{{ __('tickets')['restaurant']['global_quantities'] }}  {{ count($commands) }}
{{ __('tickets')['restaurant']['payment_method'] }}  {{ $order->order_payment_method }} @if ($has_discounts || $has_discount_applied) @php $total_with_discount = number_format($order->order_total - $order->order_discount, 2) @endphp
{{ __('tickets')['restaurant']['general_import'] }}   {{ \App\Helpers\Formats\FormatCurrencyHelper::formatCurrency($order->order_total) }}
{{ __('tickets')['restaurant']['discount'] }}   {{ $order->order_discount_percentage ?? 0 }} %


{{ __('tickets')['restaurant']['total'] }}  {{ \App\Helpers\Formats\FormatCurrencyHelper::formatCurrency($total_with_discount, false) }} @else
{{ __('tickets')['restaurant']['total'] }}  {{ \App\Helpers\Formats\FormatCurrencyHelper::formatCurrency($order->order_total, false) }} @endif
{{ __('tickets')['restaurant']['payment'] }}  {{ \App\Helpers\Formats\FormatCurrencyHelper::formatCurrency($order->order_payment) }}
{{ __('tickets')['restaurant']['change'] }}  {{ \App\Helpers\Formats\FormatCurrencyHelper::formatCurrency($order->order_change) }}

{{-- Redes Sociales --}}

{{ __('tickets')['restaurant']['acknowledgments'] }} @if($hotel->business_phone != '')
{{ __('tickets')['restaurant']['phone'] }} {{$hotel->business_phone}} @endif

{{ __('tickets')['hotel']['reservation_tickets']['go_back'] }}
{{-- Print Control --}}