 
    <div class="col-sm-12">
        <div class="white-box">
            <div class="pull-right">


            </div>
            <h3 class="box-title">All Emails</h3>

            <div class="table-responsive">
                <table id="myTable" class="table table-striped">
                    <thead>
                        <tr>
                            <th>#</th>

                            <th>Title</th>
                            <th>Receiver Email</th>
                            <th>Content</th>

                            <th>Time</th>
                            <th>Status</th>

                            <th>Action</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php $count = 1; ?>
                        @foreach ($email_log as $log)
                            <tr>
                                <td>{{ $count++ }}</td>
                                <td>{{ $log->title }}</td>
                                <td>{{ $log->receiver_email }}</td>
                                <td>{{ $log->content }}</td>

                                <td>{{ date('Y-m-d h:i:s A', strtotime($log->created_at)) }}</td>
                                <td>

                                    @if ($log->status == 1)
                                        <span class="label label-success">Success</span>
                                    @else
                                        <span class="label label-danger">Fail</span>
                                    @endif
                                </td>


                                <td>
                                    @if ($log->status != 1)
                                        <form action="{{ route('emaillog.resend-email') }}" method="post"
                                            style='display: inline;'>

                                            {!! csrf_field() !!}

                                            <input type='hidden' name='value' value="{{ $log->id }}">

                                            <button class="btn btn-link btn-s" style="color:red;" type="submit"
                                                name="action" value="resend" data-toggle="confirmation"
                                                data-title="Are you sure to resend?">
                                                <i class="fa fa-paper-plane-o" aria-hidden="true"></i>
                                            </button>
                                        </form>
                                    @endif
                                </td>

                            </tr>
                        @endforeach


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