@extends('layouts.app') @section('title', 'Opportunities') @section('heading', 'Opportunity Watch') @section('subtitle', 'Tenders, new projects, privatisation and price drops found in the news') @section('content')
All @foreach(\App\Models\Opportunity::TYPES as $k => $v){{ $v }} ({{ $mix[$k] ?? 0 }})@endforeach
@forelse($items as $o)
{{ \App\Models\Opportunity::TYPES[$o->type] ?? $o->type }} {{ $o->status }}

{{ $o->title }}

{{ \Illuminate\Support\Str::limit($o->description, 220) }}

Organisation
{{ $o->organization ?: '—' }}
Deadline
{{ $o->deadline?->format('d M Y') ?: '—' }}
@if($o->article)
Source
{{ $o->article->outlet?->name ?? 'article' }}
@endif
@csrf @method('PATCH')
@empty

No opportunities detected yet.

@endforelse
{{ $items->links() }}

Opportunity mix

Add opportunity

@csrf

@endsection @push('scripts') @include('partials.charts') @endpush