@lang('modules.restaurant.restaurantDetails')

{{ $restaurant->name }}

{{ $restaurant->name }} {{ __('app.impersonate') }} {{ __('app.impersonateTooltip') }}

@if(module_enabled('Subdomain')) @endif
{!! nl2br(e($restaurant->address)) !!}
@lang('app.id')
  • {{ $restaurant->id }}
@lang('app.status')
  • @if ($restaurant->is_active == true) @lang('app.active') @else @lang('app.inactive') @endif
@lang('modules.restaurant.phone')
  • {{ $restaurant->phone_code ? '+' . $restaurant->phone_code . ' ' . $restaurant->phone_number : $restaurant->phone_number }}
@lang('modules.restaurant.email')
  • {{ $restaurant->email }}
@lang('modules.settings.restaurantTimezone')
  • {{ $restaurant->timezone }}
@lang('modules.settings.restaurantCountry')
  • {{ $restaurant->country->countries_name }}
@lang('modules.settings.restaurantCurrency')
  • {{ $restaurant?->currency?->currency_name }} ({{ $restaurant?->currency?->currency_code }})
@lang('app.dateTime')
  • {{ $restaurant->created_at->timezone(global_setting()->timezone ?? 'Asia/Kolkata')->translatedFormat('D, d M Y, h:i A') }}

@lang('modules.restaurant.currentPackage')

@lang('modules.package.packageName'): {{ $restaurant->package?->package_name ?? __('messages.noPackageFound') }}

@lang('modules.package.packageType'): {{ ucfirst($restaurant?->package_type) }}({{ ucfirst($restaurant->package?->package_type->value) }})

@if ($restaurant->package?->package_type->value == 'trial')

@lang('modules.package.trialExpireOn'): {{ $restaurant?->trial_ends_at ? \Carbon\Carbon::parse($restaurant->trial_ends_at)->format('D, d M Y') : '--' }}

@elseif ($restaurant->package?->package_type->value != 'lifetime')

@lang('modules.package.licenceExpiresOn'): {{ optional($restaurant->license_expire_on)->format('D, d M Y') ?? '--' }}

@endif @if($restaurant->package && isset($allModules) && isset($additionalFeatures)) @php $existFeatures = collect(json_decode($restaurant->package->additional_features ?? '[]', true) ?? []); @endphp

@lang('modules.package.moduleInPackage')

@foreach ($allModules as $module)
@if($restaurant->package->modules->contains('id', $module->id)) {{ __('permissions.modules.'.$module->name) }} @else {{ __('permissions.modules.'.$module->name) }} @endif
@endforeach @foreach ($additionalFeatures as $feature) @php $isActive = $existFeatures->contains($feature); @endphp
@if ($isActive) @else @endif {{ $feature }}
@endforeach
@endif
{{-- Manage button --}}

@lang('modules.settings.branches')

@foreach ($restaurant->branches as $item) @endforeach
# @lang('modules.settings.branchName') @lang('modules.settings.branchAddress') @lang('modules.order.totalOrder')
{{ $loop->index+1 }} {{ $item->name }} {{ $item->address }} {{ $item->orders_count }}
@if ($restaurantAdmin)
@lang('modules.restaurant.firstAdmin')
Bonnie image
{{ $restaurantAdmin->name }}
{{ $restaurantAdmin->email }}
@lang('modules.restaurant.changePassword')
@else
@lang('messages.noAdminFound')
@endif
@php $restaurantHasSms = false; if ($restaurant->package) { $packageModules = $restaurant->package->modules->pluck('name')->toArray(); $additionalFeatures = json_decode($restaurant->package->additional_features ?? '[]', true); $allModules = array_unique(array_merge($packageModules, $additionalFeatures)); $restaurantHasSms = in_array('Sms', $allModules); } @endphp @if(module_enabled('Sms') && $restaurantHasSms)

@lang('sms::modules.menu.smsSettings')

@if($packageSmsCount != -1) @lang('sms::modules.sms.addSmsTopup') @endif

@lang('sms::modules.package.packageLimit')

@if($packageSmsCount == -1) @lang('sms::modules.package.unlimited') @else @if($isSmsLimitReached) @lang('sms::modules.package.exhausted') @else @lang('sms::modules.package.active') @endif @endif
@if($packageSmsCount == -1)

@lang('sms::modules.package.unlimitedMessagesAllowed')

@else {{ $packageSmsCount }}

@lang('sms::modules.package.totalSmsInPackage')

@endif

@lang('sms::modules.package.usedSmsCount')

{{ $usedSmsCount }}

@if($packageSmsCount != -1) @php $usagePercent = $packageSmsCount > 0 ? round(($usedSmsCount / $packageSmsCount) * 100, 1) : 0; @endphp {{ $usagePercent }}% @lang('sms::modules.package.ofPackageUsed') @endif

@endif
{{-- PAYMENTS--}}

@lang('menu.payments')

@if(isset($paymentStats) && $paymentStats['total_invoices'] > 0)

@lang('modules.billing.total')

{{ $paymentStats['total_invoices'] }}

@lang('modules.billing.receipt')

@lang('modules.customer.totalAmountReceived')

{{ global_currency_format($paymentStats['total_amount'], global_setting()->default_currency_id) }}

@lang('modules.billing.purchaseHistory')

@if($paymentStats['first_payment_date']) {{ $paymentStats['first_payment_date']->format('D, d M Y') }} @else -- @endif

@lang('app.first')

@lang('modules.billing.paymentDate')

@if($paymentStats['last_payment_date']) {{ $paymentStats['last_payment_date']->format('D, d M Y') }} @else -- @endif

@lang('app.last')

@endif
{{-- POS MACHINE USAGE--}} @if(module_enabled('MultiPOS')) @endif @lang('modules.restaurant.changePassword')
@csrf
@lang('app.save')
@lang('app.cancel')
@lang('sms::modules.sms.addSmsTopup')

@lang('sms::modules.sms.currentSmsBalance'): {{ $packageSmsCount == -1 ? '∞ (Unlimited)' : $packageSmsCount }}

@lang('sms::modules.sms.usedSms'): {{ $usedSmsCount }}

@lang('app.cancel') @lang('sms::modules.sms.addTopup')