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

{{ __('API Monitor') }}

{{ __('Add API') }}

{{ __('You can add an API from here') }}.

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

{{ __('Add API') }}

@csrf
@error('name')
{{ $message }}
@enderror {{ __('Here you can enter a name of your choice for the api') }}.
@error('url')
{{ $message }}
@enderror {{ __('Here you can enter the API URL') }}.
Eg: {{ __('https://reqres.in/api/products/3') }}
{{ __('Here you need to select HTTP method to be performed on the object identified by the URL') }}.
@error('expected_response_code')
{{ $message }}
@enderror {{ __('Here you need to provide HTTP response status code of the URL, It should be some numbers') }}.
Eg: {{ __('200') }}
@error('json')
{{ $message }}
@enderror {{ __('Please paste any json data that should be posted to the API here (optional)') }}.
@error('interval')
{{ $message }}
@enderror {{ __('Here you need to select the time interval you want to check the status of the API') }}.
@error('email')
{{ $message }}
@enderror Eg: {{ Auth::user()->email }} {{ __('Here you can enter email id, To this email id status update emails will be sent.') }}
{{ __('If no email is mentioned here, mail will be sent to') }}
{{ Auth::user()->email }}
@if ($testFailed = Session::get('test_failed'))
@endif
@endsection