@extends('adminlte::page') @section('plugins.Datatables',true) @section('title', __('modules')['dashboard']['hotel']['clients']) @section('content') {{-- Styles --}} {{-- Page Control --}} @php use \App\Helpers\Environment\SystemFeaturesHelper; $has_identity_documents = SystemFeaturesHelper::getFeatureStatus("identity_documents"); $has_discounts = SystemFeaturesHelper::getFeatureStatus("discounts"); @endphp {{-- Body --}}
{{-- Title & Button --}}

{{ __('modules')['dashboard']['hotel']['clients'] }}

{{-- Table Structure --}}
@php $fields = [ ['key' => "ID", 'width' => $has_identity_documents ? '10%' : '15%'], ['key' => __('entity_fields')['common']['type'], 'width' => $has_identity_documents ? '12%' : '20%'], ['key' => __('entity_fields')['common']['name'], 'width' => $has_identity_documents ? '15%' : '25%'], ['key' => __('entity_fields')['common']['phone'], 'width' => $has_identity_documents ? '13%' : '20%'], ['key' => __('entity_fields')['common']['email'], 'width' => $has_identity_documents ? '13%' : '20%'], ['key' => __('entity_fields')['client']['state'], 'width' => $has_identity_documents ? '13%' : '20%'], ]; @endphp @foreach ($fields as $field) @endforeach @if ($has_identity_documents) @endif
{{ $field['key'] }}{{ __('entity_fields')['client']['document_number'] }}{{ __('entity_fields')['common']['actions'] }}
@include('hotel.clients.components.client-form')
{{-- JS Control --}} @endsection