
    <div class="page-content container-fluid" style="margin-top: 5em">
        <div class="row">
            <div class="col-md-9">
                <!-- Panel Wizard Form -->
                <div class="panel">

                    <div class="panel-body nav-tabs-animate nav-tabs-horizontal">

                        <h3>Campaign Report - {{$report->campaign_title}}
{{--                            <a class="btn btn-primary btn-xs float-right" href="{{route('email.campaigns.report.pdf',$emailCampaign->id)}}">PDF <i class="fa fa-file-pdf-o"></i></a>--}}
                        </h3>
                        <hr>
                        <table class="table table-bordered">
                           <thead>

                            <tr class="text-uppercase">
                                <th>Campaign ID</th>
                                <td>{{$report->id}}</td>
                            </tr>

                            <tr class="text-uppercase">
                                <th>campaign title</th>
                                <td>{{$report->campaign_title}}</td>
                            </tr>

                            <tr class="text-uppercase">
                                <th>list id</th>
                                <td>{{$report->list_id}}</td>
                            </tr>

                            <tr class="text-uppercase">
                                <th>list is active</th>
                                <td>{{$report->list_is_active ? 'True' : 'False'}}</td>
                            </tr>

                            <tr class="text-uppercase">
                                <th>list name</th>
                                <td>{{$report->list_name}}</td>
                            </tr>

                            <tr class="text-uppercase">
                                <th>subject line</th>
                                <td>{{$report->subject_line}}</td>
                            </tr>

                            <tr class="text-uppercase">
                                <th>emails sent</th>
                                <td>{{$report->emails_sent}}</td>
                            </tr>

                            <tr class="text-uppercase">
                                <th>abuse reports</th>
                                <td>{{$report->abuse_reports}}</td>
                            </tr>

                            <tr class="text-uppercase">
                                <th>unsubscribed</th>
                                <td>{{$report->unsubscribed}}</td>
                            </tr>

                            <tr class="text-uppercase">
                                <th>send time</th>
                                <td>{{\Carbon\Carbon::parse($report->send_time)}}</td>
                            </tr>

                            <tr class="text-uppercase">
                                <th>
                                    bounces
                                </th>
                                <td>
                                    <table class="table table-bordered">
                                        <thead>
                                            <tr>
                                                <th>hard bounces</th>
                                                <td>{{$report->bounces->hard_bounces}}</td>
                                            </tr>

                                            <tr>
                                                <th>soft bounces</th>
                                                <td>{{$report->bounces->soft_bounces}}</td>
                                            </tr>

                                            <tr>
                                                <th>syntax errors</th>
                                                <td>{{$report->bounces->syntax_errors}}</td>
                                            </tr>


                                        </thead>
                                    </table>
                                </td>
                            </tr>

                            <tr class="text-uppercase">
                                <th>forwards</th>
                                <td>
                                    <table class="table table-bordered">
                                        <thead>
                                        <tr>
                                            <th>forwards count</th>
                                            <td>{{$report->forwards->forwards_count}}</td>
                                        </tr>

                                        <tr>
                                            <th>forwards opens</th>
                                            <td>{{$report->forwards->forwards_opens}}</td>
                                        </tr>
                                        </thead>
                                    </table>
                                </td>
                            </tr>

                            <tr class="text-uppercase">
                                <th>opens</th>
                                <td><table class="table table-bordered">
                                        <thead>
                                        <tr>
                                            <th>opens total</th>
                                            <td>{{$report->opens->opens_total}}</td>
                                        </tr>
                                        <tr>
                                            <th>unique opens</th>
                                            <td>{{$report->opens->unique_opens}}</td>
                                        </tr>
                                        <tr>
                                            <th>open rate</th>
                                            <td>{{$report->opens->open_rate}}</td>
                                        </tr>
                                        <tr>
                                            <th>last open</th>
                                            <td>{{\Carbon\Carbon::parse($report->opens->last_open)}}</td>
                                        </tr>
                                        </thead>
                                    </table></td>
                            </tr>

                            <tr class="text-uppercase">
                                <th>clicks</th>
                                <td> <table class="table table-bordered">
                                        <thead>
                                        <tr>
                                            <th>clicks total</th>
                                            <td>{{$report->clicks->clicks_total}}</td>
                                        </tr>
                                        <tr>
                                            <th>unique clicks</th>
                                            <td>{{$report->clicks->unique_clicks}}</td>
                                        </tr>
                                        <tr>
                                            <th>unique subscriber clicks</th>
                                            <td>{{$report->clicks->unique_subscriber_clicks}}</td>
                                        </tr>
                                        <tr>
                                            <th>click rate</th>
                                            <td>{{$report->clicks->click_rate}}</td>
                                        </tr>
                                        <tr>
                                            <th>last click</th>
                                            <td>{{\Carbon\Carbon::parse($report->clicks->last_click)}}</td>
                                        </tr>
                                        </thead>
                                    </table></td>
                            </tr>

                            <tr class="text-uppercase">
                                <th>list_stats</th>
                                <td> <table class="table table-bordered">
                                        <thead>
                                        <tr>
                                            <th>sub rate</th>
                                            <td>{{$report->list_stats->sub_rate}}</td>
                                        </tr>
                                        <tr>
                                            <th>unsub rate</th>
                                            <td>{{$report->list_stats->unsub_rate}}</td>
                                        </tr>
                                        <tr>
                                            <th>open rate</th>
                                            <td>{{$report->list_stats->open_rate}}</td>
                                        </tr>
                                        <tr>
                                            <th>click rate</th>
                                            <td>{{$report->list_stats->click_rate}}</td>
                                        </tr>
                                        </thead>
                                    </table></td>
                            </tr>

                            <tr class="text-uppercase">
                                <th>delivery status</th>
                                <td> <table class="table table-bordered">
                                        <thead>
                                        <tr>
                                            <th>enabled</th>
                                            <td>{{$report->delivery_status->enabled ?? null  ? 'True' : 'False'}}</td>
                                        </tr>
                                        <tr>
                                            <th>can cancel</th>
                                            <td>{{$report->delivery_status->can_cancel  ?? null ? 'True' : 'False'}}</td>
                                        </tr>
                                        <tr>
                                            <th>status</th>
                                            <td>{{$report->delivery_status->status  ?? null }}</td>
                                        </tr>
                                        <tr>
                                            <th>emails sent</th>
                                            <td>{{$report->delivery_status->emails_sent  ?? null }}</td>
                                        </tr>

                                        <tr>
                                            <th>emails canceled</th>
                                            <td>{{$report->delivery_status->emails_canceled  ?? null}}</td>
                                        </tr>
                                        </thead>
                                    </table></td>
                            </tr>
                           </thead>

                       </table>
                    </div>
                </div>
            </div>

        </div>
    </div>


