<commit_before>@extends('layout.dashboard')

@section('content')
    <div class="header fixed">
        <div class="sidebar-toggler visible-xs">
            <i class="icon ion-navicon"></i>
        </div>
        <span class="uppercase">
            <i class="icon icon ion-android-alert"></i> {{ trans('dashboard.subscribers.subscribers') }}
        </span>
        @if($loggedUser->isAdmin)
        <a class="btn btn-sm btn-success pull-right" href="{{ route('dashboard.subscribers.add') }}">
            {{ trans('dashboard.subscribers.add.title') }}
        </a>
        @endif
        <div class="clearfix"></div>
    </div>
    <div class="content-wrapper header-fixed">
        <div class="row">
            <div class="col-sm-12">
            <p class="lead">{{ trans('dashboard.subscribers.description') }}</p>

            <div class="striped-list">
                @foreach($subscribers as $subscriber)
                <div class="row striped-list-item">
                <div class="col-xs-3">
                    <p>{{ $subscriber->email }}</p>
                </div>
                <div class="col-xs-3">
                    <p>{{ $subscriber->created_at }}</p>
                </div>
                <div class="col-xs-3">
                    @if(is_null($subscriber->verified_at))
                    <b class="text-danger">{{ trans('dashboard.subscribers.not_verified') }}</b>
                    @else
                    <b class="text-success">{{ trans('dashboard.subscribers.verified') }}</b>
                    @endif
                </div>
                <div class="col-xs-3 text-right">
                    <a href="/dashboard/subscribers/{{ $subscriber->id }}/delete" class="btn btn-danger confirm-action" data-method='DELETE'>{{ trans('forms.delete') }}</a>
                </div>
                </div>
            @endforeach
            </div>
            </div>
        </div>
    </div>
@stop<commit_msg>Fix showing of verified subscribers when they're not. Fixes #855<commit_after>@extends('layout.dashboard')

@section('content')
    <div class="header fixed">
        <div class="sidebar-toggler visible-xs">
            <i class="icon ion-navicon"></i>
        </div>
        <span class="uppercase">
            <i class="icon icon ion-android-alert"></i> {{ trans('dashboard.subscribers.subscribers') }}
        </span>
        @if($loggedUser->isAdmin)
        <a class="btn btn-sm btn-success pull-right" href="{{ route('dashboard.subscribers.add') }}">
            {{ trans('dashboard.subscribers.add.title') }}
        </a>
        @endif
        <div class="clearfix"></div>
    </div>
    <div class="content-wrapper header-fixed">
        <div class="row">
            <div class="col-sm-12">
            <p class="lead">{{ trans('dashboard.subscribers.description') }}</p>

            <div class="striped-list">
                @foreach($subscribers as $subscriber)
                <div class="row striped-list-item">
                <div class="col-xs-3">
                    <p>{{ $subscriber->email }}</p>
                </div>
                <div class="col-xs-3">
                    <p>{{ $subscriber->created_at }}</p>
                </div>
                <div class="col-xs-3">
                    @if(is_null($subscriber->getOriginal('verified_at')))
                    <b class="text-danger">{{ trans('dashboard.subscribers.not_verified') }}</b>
                    @else
                    <b class="text-success">{{ trans('dashboard.subscribers.verified') }}</b>
                    @endif
                </div>
                <div class="col-xs-3 text-right">
                    <a href="/dashboard/subscribers/{{ $subscriber->id }}/delete" class="btn btn-danger confirm-action" data-method='DELETE'>{{ trans('forms.delete') }}</a>
                </div>
                </div>
            @endforeach
            </div>
            </div>
        </div>
    </div>
@stop
{'fraction_non_alphanumeric': 0.1747843734145104, 'fraction_numerical': 0.00380517503805175, 'mean_word_length': 1.6841388699795778, 'pattern_counts': {'":': 0, '<': 91, '<?xml version=': 0, '>': 101, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '411549', 'n_tokens_mistral': 1173, 'n_tokens_neox': 1133, 'n_words': 208}