@lang('modules.printerSetting.kitchens'):
@php
$kotIds = is_array($printer->kots) ? $printer->kots : json_decode($printer->kots, true);
@endphp
@if (!empty($kotIds))
{{ collect($kotIds)->map(fn($id) => $kots->firstWhere('id', $id)?->name ?? $id)->implode(', ') }}
@else
--
@endif
@lang('modules.printerSetting.orders'):
@php
$orderIds = is_array($printer->orders) ? $printer->orders : json_decode($printer->orders, true);
@endphp
@if (!empty($orderIds))
{{ collect($orderIds)->map(fn($id) => $orders->firstWhere('id', $id)?->name ?? $id)->implode(', ') }}
@else
--
@endif
@lang('modules.printerSetting.printingChoice'):
{{ $printer->printing_choice ? __('modules.printerSetting.' . $printer->printing_choice) : '--' }}
@lang('modules.printerSetting.printFormat'):
{{ $printer->print_format ? __('modules.printerSetting.' . $printer->print_format) : '--' }}
@if ($printer->printing_choice == 'directPrint' && $printer->type == 'network')
@lang('modules.printerSetting.ipAddress'):
{{ $printer->ip_address ?? '--' }}
@else
@lang('modules.printerSetting.shareName'):
{{ $printer->share_name ?? '--' }}
@endif
@lang('modules.printerSetting.port'):
{{ $printer->port ?? '--' }}
@lang('modules.printerSetting.printerType'):
@if (!empty($printer->type))
@lang('modules.printerSetting.' . ($printer->type === 'windows' ? 'usbPrinter' : $printer->type))
@else
--
@endif