@extends('layouts.app')
@section('title', 'Proposals')
@section('page-title', 'Proposals')
@section('page-subtitle', 'Applications from influencers across all campaigns')
@push('styles')
@endpush
@section('content')
@foreach (['pending' => 'Waiting on you', 'approved' => 'Approved', 'rejected' => 'Rejected', 'all' => 'Everything'] as $key => $label)
{{ $label }}
{{ $counts[$key] ?? 0 }}
@endforeach
@forelse ($proposals as $p)
{{ strtoupper(mb_substr($p->user->name ?? '?', 0, 1)) }}
{{ $p->user->name ?? 'Unknown' }}
{{ $p->platform }} ยท {{ $p->channel_name }}
{{ number_format($p->follower_count) }}
followers
{{ $p->created_at->diffForHumans() }}
{{ $p->statusLabel() }}
@if ($p->campaign)
{{ $p->isPending() ? 'Review' : 'Open' }}
@endif
@empty
Nothing here
@if ($status === 'pending')
Every proposal has been dealt with.
@else
No proposals with this status yet.
@endif
@endforelse
{{ $proposals->links() }}
@endsection