@extends('admin.layout') @section('content')

{{ trans('Channel Provider Status') }}

Channel Up : {{ $upCount }}
Channel Down : {{ $downCount }}
Channel Removed : {{ $removeCount }}
@php $seenChannels = []; @endphp @foreach($result as $req) @php if(in_array($req->channel_name, $seenChannels)) { continue; } $seenChannels[] = $req->channel_name; $frequency = 0; foreach($channelCounts as $channelCount) { if($channelCount->channel_name == $req->channel_name) { $frequency = $channelCount->count; break; } } $dotColor = ''; if($req->channel_status == 'Up') { $dotColor = 'green'; } elseif($req->channel_status == 'Down') { $dotColor = 'red'; } elseif($req->channel_status == 'Remove') { $dotColor = 'yellow'; } @endphp {{-- --}} {{-- --}} @endforeach
{{ trans('Channel Name') }} {{ trans('ID') }} {{ trans('Current Status') }} Issue reported date and time Down Time Channel Owner Provider Name Frequency
{{ $req->channel_name }}{{ $req->status_id }}{{ $req->id }} {{$req->id }} {{ $req->channel_status }} {{ $req->created_at }} {{ $req->formatted_downtime }} {{ $req->channel_owner }} {{ $req->channel_provider }} {{ $frequency }}
{{ $result->links()}}
@endsection @section('scripts') @endsection