@extends('layouts.admin') @push('styles') @endpush @section('content')
Refresh

Food Type List

Create Food Type
@if(count($itemList) > 0) @php $sl=1; $status = 'on'; $printerStatus = Helper::onlinePrinters($status); if(is_array($printerStatus) && (count($printerStatus) > 0) ){ $ips = array_column($printerStatus, 'ip'); }else{ $ips = []; } @endphp @foreach($itemList as $key => $food) @php if(in_array($food->printer_ip,$ips)){ $activeStatus = 'Active'; }else{ $activeStatus = 'Inactive'; } @endphp @endforeach @endif
SL Food Type Printer Ip Status Active Status Action
{{$sl++}} {{$food->type_name}} {{$food->printer_ip}} {{$food->onlinestatus}} {{$activeStatus}} Edit Delete
@endsection @push('scripts') @endpush