@extends('layouts.app') @section('title', 'API Sources') @section('breadcrumb') @endsection @section('content')
Total Sources
{{ $api_sources->total() }}
Active Sources
{{ \App\Models\ApiSource::where('status', 'active')->count() }}
Total Requests
{{ \App\Models\ApiLog::count() }}
Inactive Sources
{{ \App\Models\ApiSource::where('status', 'inactive')->count() }}
API Sources List
@if($api_sources->count() > 0)
@foreach($api_sources as $source) @endforeach
Name URL Method Table Schedule Status Last Fetched Actions
{{ $source->name }}
@if($source->description)
{{ Str::limit($source->description, 50) }}
@endif
{{ Str::limit($source->url, 40) }} {{ $source->method }} {{ $source->table_name }} {{ ucfirst($source->schedule_type) }} @if($source->schedule_frequency)
Every {{ $source->schedule_frequency }}{{ $source->schedule_type == 'hourly' ? 'h' : 'd' }} @endif
{{ ucfirst($source->status) }} @if($source->last_fetched_at) {{ $source->last_fetched_at->diffForHumans() }} @else Never @endif
Showing {{ $api_sources->firstItem() }} to {{ $api_sources->lastItem() }} of {{ $api_sources->total() }} results
{{ $api_sources->links() }}
@else
No API Sources Found

Get started by creating your first API source.

Create API Source
@endif
@push('scripts') @endpush @endsection