@extends('layouts.main.app') @section('head') @include('layouts.main.headersection',['title'=> 'Webhooks log reports']) @endsection @section('content')
{{ number_format($total) }}

{{ __('Total Payloads') }}

{{ number_format($sent_hooks) }}

{{ __('Sent Hooks') }}

{{ number_format($failed) }}

{{ __('Failed Hooks') }}

@if(count($hooks ?? []) == 0)

{{ __('!Opps no records found') }}

@else
@foreach($hooks ?? [] as $hook) @endforeach
{{ __('Device') }} {{ __('Hook Url') }} {{ __('Payload') }} {{ __('Status') }} {{ __('Http Status') }} {{ __('Requested At') }}
{{ $hook->device->name ?? 'None' }} {{ $hook->hook }} {{ $hook->status == 1 ? 'Sent' : ($hook->status == 2 ? 'pending' : 'Failed') }} {{$hook->status_code}} {{ $hook->created_at->format('d F Y') }}
{{ $hooks->links('vendor.pagination.bootstrap-4') }}
@endif
@endsection