@extends('sendportal::layouts.app') @section('title', __('Campaigns')) @section('heading') {{ __('Campaigns') }} @endsection @section('content') @include('sendportal::campaigns.partials.nav') @component('sendportal::layouts.partials.actions') @slot('right') {{ __('New Campaign') }} @endslot @endcomponent
@if (request()->routeIs('sendportal.campaigns.sent')) @endif @forelse($campaigns as $campaign) @if (request()->routeIs('sendportal.campaigns.sent')) @endif @empty @endforelse
{{ __('Name') }}{{ __('Sent') }} {{ __('Opened') }} {{ __('Clicked') }}{{ __('Created') }} {{ __('Status') }} {{ __('Actions') }}
@if ($campaign->draft) {{ $campaign->name }} @elseif($campaign->sent) {{ $campaign->name }} @else {{ $campaign->name }} @endif {{ $campaignStats[$campaign->id]['counts']['sent'] }} {{ number_format($campaignStats[$campaign->id]['ratios']['open'] * 100, 1) . '%' }} {{ number_format($campaignStats[$campaign->id]['ratios']['click'] * 100, 1) . '%' }} {{ $campaign->created_at->diffForHumans() }} @include('sendportal::campaigns.partials.status')

@if (request()->routeIs('sendportal.campaigns.index')) {{ __('You do not have any draft campaigns.') }} @else {{ __('You do not have any sent campaigns.') }} @endif

@include('sendportal::layouts.partials.pagination', ['records' => $campaigns]) @endsection