{{ __('common.sr-no') }} {{ __('pos_device.name') }} @include('up-down') {{ __('pos_device.store_name') }} @include('up-down') {{ __('pos_device.platform_version') }} {{ __('pos_device.status') }} {{ __('common.action') }} @php $editRoute = (isSeller() > 0) ? 'seller.pos-device.edit' : 'pos-device.edit'; $dropRoute = (isSeller() > 0) ? 'seller.pos-device.drop' : 'pos-device.drop'; $toggleRoute = (isSeller() > 0) ? 'seller.pos-device.toggle' : 'pos-device.toggle'; $startIndex = ($data->currentPage() - 1) * $data->perPage() + 1; @endphp @forelse($data as $key => $detail) @php $appVersion = $platform = ''; if(array_key_exists($detail->id, $posDevicesVersionArr)) { $platform = $posDevicesVersionArr[$detail->id]['device']; $platform = ($platform == 'pos') ? 'POS Android' : ( $platform == 'pos_ios' ? 'POS iOS' : '') ; $remarks = $posDevicesVersionArr[$detail->id]['remark']; $remarks = $remarks ? json_decode($remarks) : null; if($remarks) { $appVersion = '(#'.$remarks->version.')'; } } $posDetail = $platform.' '.$appVersion; @endphp {{ $startIndex++ }} {{ $detail->name }} {{ $detail->store_name }} {!! $posDetail !!} | @empty {{__('common.no_records')}} @endforelse @include('pagination', ['data' => $data])