@extends('layouts.app')
@section('title', 'My Proposals')
@section('page-title', 'My Proposals')
@section('page-subtitle', 'Campaigns you have applied to')
@section('topbar-actions')
Browse Campaigns
@endsection
@push('styles')
@endpush
@section('content')
@php
$all = $proposals->getCollection();
$pending = $all->where('status', 'pending')->count();
$approved = $all->where('status', 'approved')->count();
@endphp
@if ($proposals->total())
{{ $proposals->total() }}
sent
{{ $pending }}
under review
{{ $approved }}
approved
@endif
@forelse ($proposals as $p)
{{ $p->platform }}
{{ $p->channel_name }}
{{ number_format($p->follower_count) }}
followers
{{ rtrim(rtrim(number_format((float) $p->engagement_rate, 2), '0'), '.') }}%
engagement
{{ number_format($p->avg_views) }}
average views
@if ($p->status === 'approved')
You're in.
{{ $p->review_note ?: 'The brand will be in touch about next steps.' }}
@elseif ($p->status === 'rejected')
Not selected this time.
{{ $p->review_note ?: 'Keep an eye out for other campaigns that fit your channel.' }}
@elseif ($p->review_note)
{{ $p->review_note }}
@endif
@empty
You haven't applied to anything yet
Browse the open campaigns and send a proposal to the ones that suit your channel.
Browse Campaigns
@endforelse
@if ($proposals->hasPages())
{{ $proposals->links() }}
@endif
@endsection