@extends('layouts.new_theme') @section('content')

{{ __('Webpage Incidents') }}

{{ __('List of Incidents') }}

{{__('Total number of webpage incidents')}}: {{ $incidents->total() }}

@include('common.demo') @include('common.user') @include('common.errors')

{{ __('List of Incidents') }}

{{ __('Add Incident') }}
@csrf
@if (!count($incidents))

{{ __('No data found') }} !!

{{ __('Sorry we cant find any data, to get rid of this message, make at least 1 entry') }}.

{{ __('Create new One') }}
@else
@foreach ($incidents as $incident) @endforeach
{{ __('Webpage') }} {{ __('Subject') }} {{ __('Description') }} {{ __('Status') }} {{ __('Last update') }} {{ __('Follow up') }}
{{ Str::limit($incident->monitors->name, 20) }} {{ Str::limit($incident->subject, 30) }} {!! strip_tags(Str::limit($incident->description, 30)) !!} @if($incident->status == true) {{ __('Resolved') }} @else {{ __('Pending') }} @endif {{ $incident->updated_at->diffForHumans() }} {{ __('Follow up') }} @if (env('APP_ENV') != 'demo')
@method('DELETE') @csrf
@endif

{{ $incidents->appends($request->all())->links("pagination::bootstrap-4") }}
@endif
@endsection