@extends('layouts.default-canvas') @section('title') {{ __('modules')['dashboard']['settings']['audits_short'] }} | {{ __('entity_forms')['conclude_shift']['page_title'] }} @endsection @section('styles') @endsection @section('content')
@csrf {{-- Title --}}

{{ __('entity_forms')['audit_shift']['title'] }}

{{-- Basic Data --}}
@php $today = now()->format('Y-m-d\TH:i'); $actual_date = now()->format('Y-m-d'); $actual_time = now()->format('H:i'); @endphp {{-- Timestamp --}}
{{-- Visual Field --}}
{{-- Hidden Fields --}} {{-- Audit Date --}} {{-- Audit Time --}}
{{-- User --}}
{{-- Visual Field --}}
{{-- Hidden Fields --}} {{-- User ID --}}
{{-- Current Shift --}}
{{-- Visual Fields --}}
{{-- Hidden Fields --}} {{-- Current Shift ID --}}
{{-- Shift Statistics --}}

{{ __('entity_forms')['audit_shift']['statistics_section']['title'] }}

{{-- Occupied Rooms --}}
{{-- Available Rooms --}}
{{-- Blocked Rooms --}}
{{-- Occupancy % --}}
{{-- Total Check-ins --}}
{{-- Total Check-outs --}}
{{-- Deferred Reservations --}}
{{-- Overbooking --}}
{{-- Income --}}
{{-- Title --}}

{{ __('entity_forms')['audit_shift']['income_section']['title'] }}

@php $incomeCategories = [ 'lodging' => __('entity_forms')['audit_shift']['income_section']['lodging'], 'consumption' => __('entity_forms')['audit_shift']['income_section']['consumption'], 'extra' => __('entity_forms')['audit_shift']['income_section']['extras'], ]; if($include_restaurant) $incomeCategories['restaurant'] = __('entity_forms')['audit_shift']['income_section']['restaurant']; if ($divide_restaurant_modules) $incomeCategories['mini_shop'] = __('entity_forms')['audit_shift']['income_section']['mini_shop']; @endphp
@foreach ($incomeCategories as $key => $label)
{{-- Title --}}
{{ $label }}
{{-- Estimated Income --}}
{{-- Revenue by Payment Method --}} @foreach ($payment_methods as $payment_method) @php $methodName = Str::slug($payment_method->method_name, '_'); $fieldName = "{$methodName}_{$key}_revenue"; @endphp
@endforeach

• {{ __('entity_forms')['audit_shift']['income_section']['confirm_income'] }}

{{-- Confirmed Income --}}
@endforeach
{{-- Cash Transactions & Cash Recounts --}}
{{-- Title --}}

{{ __('entity_forms')['audit_shift']['cash_movements_sections']['title'] }}

{{-- Tabs --}} {{--Contenido--}}
{{-- Hoteleria (Transactions by Payment Method) --}}
@foreach ($payment_methods as $payment_method) @php $methodName = Str::slug($payment_method->method_name, '_'); @endphp @include("modules.audits.components.payment_method_block", [ 'payment_method' => $payment_method, 'revenues' => [ floatval($incomes->lodging->$methodName) ?? 0.0, floatval($incomes->consumption->$methodName) ?? 0.0, floatval($incomes->extra->$methodName) ?? 0, ], 'tab_prefix' => 'hotel', ]) @endforeach
@if ($include_restaurant) {{-- Restaurante (Transactions by Payment Method) --}}
@foreach ($payment_methods as $payment_method) @php $methodName = Str::slug($payment_method->method_name, '_'); @endphp @include("modules.audits.components.payment_method_block", [ 'revenues' => [ floatval($incomes->restaurant->$methodName) ?? 0, ], 'tab_prefix' => 'restaurant', ]) @endforeach
@endif @if ($divide_restaurant_modules) {{-- Tiendita (Transactions by Payment Method) --}}
@foreach ($payment_methods as $payment_method) @php $methodName = Str::slug($payment_method->method_name, '_'); @endphp @include("modules.audits.components.payment_method_block", [ 'payment_method' => $payment_method, 'revenues' => [ floatval($incomes->mini_shop->$methodName) ?? 0, ], 'tab_prefix' => 'mini_shop', ]) @endforeach
@endif
@if ($include_petty_cash) {{-- Petty Cash --}}
{{-- Title --}}

{{ __('entity_forms')['audit_shift']['petty_cash_section']['title'] }}

{{-- Caja Chica (Transactions of the Day) --}} @php $tab_prefix = "petty_cash" @endphp
{{-- Initial Cash --}}
{{-- Cash Withdrawn --}}
{{-- Cash Withdrawn Reason --}}
{{-- Expected Balance --}}
{{-- Cash Count --}}
{{-- Balance Shortfall --}}
{{-- Shortfall Reason --}}
@endif {{-- Button --}}
  • {{ __('entity_forms')['audit_shift']['warning_message_1'] }}
  • {{ __('entity_forms')['audit_shift']['warning_message_2'] }}
@endsection @section('footer') @include('shared.components.footer.basic-footer') @endsection @section('import-scripts') {{-- Sweet Alert --}} @endsection @section('page-control-scripts') @endsection @section('interaction-scripts') @endsection @section('cycling-scripts') @endsection