@extends('frontend.layouts.plain') @section('title') CUrW Weather Stations @endsection @section('meta') @endsection @section('after-styles') @endsection @section('content')
CUrW Weather Stations (Internal)
@foreach($stations as $station) {{--@if($station['name'] !== 'Kohuwala')--}}
@if($station['color'] == 'red') @if($station['name'] == 'Kottawa North Dharmapala School') Kottawa @else {{ $station['name'] }} @endif ({{ $station['source'] }}) @if($station['temperature'] !== null) {{ $station['temperature'] }} @else NA @endif {{ $station['precipitation_1h'] }} mm (Last hour) {{ $station['precipitation_3h'] }} mm (Last 3 hours) {{ $station['precipitation_24h'] }} mm (Last 24 hours) Last Updated: {{ $station['last_updated'] }} @elseif($station['color'] == 'orange') @if($station['name'] == 'Kottawa North Dharmapala School') Kottawa @else {{ $station['name'] }} @endif ({{ $station['source'] }}) @if($station['temperature'] !== null) {{ $station['temperature'] }} @else NA @endif {{ $station['precipitation_1h'] }} mm (Last hour) {{ $station['precipitation_3h'] }} mm (Last 3 hours) {{ $station['precipitation_24h'] }} mm (Last 24 hours) Last Updated: {{ $station['last_updated'] }} @elseif($station['color'] == 'green') @if($station['name'] == 'Kottawa North Dharmapala School') Kottawa @else {{ $station['name'] }} @endif ({{ $station['source'] }}) @if($station['temperature'] !== null) {{ $station['temperature'] }} @else NA @endif {{ $station['precipitation_1h'] }} mm (Last hour) {{ $station['precipitation_3h'] }} mm (Last 3 hours) {{ $station['precipitation_24h'] }} mm (Last 24 hours) Last Updated: {{ $station['last_updated'] }} @endif

{{--@endif--}} @endforeach {{--
--}} {{--
--}} {{----}} {{--Malfunction--}} {{--
--}} {{--
--}} {{----}} {{--Warning--}} {{--
--}} {{--
--}} {{----}} {{--Working--}} {{--
--}} {{--
--}}
@endsection