Anons79 Mini Shell

Directory : /home/proudlyafrican/public_html/resources/views/admin/coupen/
Upload File :
Current File : /home/proudlyafrican/public_html/resources/views/admin/coupen/coupen_send_to_users.blade.php

@extends('admin.head')
@section('middle')


<!-- jQuery library -->
<script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.slim.min.js"></script>

<!-- Popper JS -->
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js"></script>

<!-- Latest compiled JavaScript -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/js/bootstrap.bundle.min.js"></script>
<section class="content">
    @if(Session::has('msg'))
    <div class="alert alert-success" id="success-alert">
        <button type="button" class="close" data-dismiss="alert">x</button>
        <p  align="center" style="font-weight: bold; font-size: 13px; color: white"> Success: {{ Session::get('msg') }} </p>
    </div>
    <br>
    @endif

    @if(Session::has('msg2'))

    <div class="alert alert-danger" id="success-alert">
        <button type="button" class="close" data-dismiss="alert">x</button>
        <p  align="center" style="font-weight: bold; font-size: 13px; color: white"> Success: {{ Session::get('msg2') }} </p>
    </div>
    <br>
    @endif

    <div class="row">
        <div class="col-xs-12">

            <div class="box">
                <div class="box-header">
                    <h3 class="box-title">Coupen Detail</h3>
                </div>
                <!-- /.box-header -->
                <div class="box-body">
                    <ul class="nav nav-tabs" role="tablist">
                        <li class="nav-item">
                            <a id="first" class="nav-link active" data-toggle="tab" href="#tabs-1" role="tab">Remaining Users</a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link" data-toggle="tab" href="#tabs-2" role="tab">Already Sent To Users</a>
                        </li>

                    </ul><!-- Tab panes -->
                    <div class="tab-content">
                        <div class="tab-pane active" id="tabs-1" role="tabpanel">
                            <table id="example1" class="table table-bordered table-striped">
                                <thead>
                                <tr>
                                    <th>SR #</th>
                                    <th>Name</th>
                                    <th>Email</th>
                                    <th><input type="checkbox" id="checkAll">Check All</th>
                                </tr>
                                </thead>
                                <form action="{{ url('coupen_send_to_users') }}" method="post">
                                    <input type="hidden" name="_token" value="<?php echo csrf_token(); ?>">
                                    <input type="hidden" name="coupen_id" value="{{ $coupen_id }}">
                                    <input type="hidden" name="coupen" value="{{ $coupens[0]->coupen }}">
                                    <input type="hidden" name="percentage" value="{{ $coupens[0]->percentage }}">
                                    <input type="hidden" name="end_date" value="{{ $coupens[0]->enddate }}">
                                    <tbody>
                                    <?php $count=1; ?>
                                    @foreach($remainings as $remaining)
                                    <tr>
                                        <td>{{ $count }}</td>
                                        <td>{{ $remaining->fname }}</td>
                                        <td>{{ $remaining->email }}
                                            <input type="hidden" name="user_id[]" value="{{ $remaining->user_id }}">
                                            <input type="hidden" name="user_email[]" value="{{ $remaining->email }}">

                                        </td>
                                        <td style="width: 20%">
                                            <input type="checkbox" name="check_user[]" value="{{ $remaining->user_id }}">
                                        </td>

                                    </tr>
                                    <?php $count=$count+1; ?>
                                    @endforeach
                                    <tr>
                                        <td colspan="4"> <input style="float: right" type="submit" class="btn btn-primary"></td>
                                    </tr>

                                    </tbody>

                                </form>
                            </table>
                        </div>
                        <div class="tab-pane" id="tabs-2" role="tabpanel">
                            <table id="example1" class="table table-bordered table-striped">
                                <thead>
                                <tr>
                                    <th>SR #</th>
                                    <th>Name</th>
                                    <th>Email</th>
                                </tr>
                                </thead>
                                <tbody>
                                <?php $count=1; ?>
                                @foreach($already as $user)
                                <tr>
                                    <td>{{ $count }}</td>
                                    <td>{{ $user->fname }}</td>
                                    <td>{{ $user->email }}</td>
                                </tr>
                                <?php $count=$count+1; ?>
                                @endforeach
                                </tbody>
                            </table>
                        </div>

                    </div>

                </div>
                <!-- /.box-body -->
            </div>
            <!-- /.box -->
        </div>
        <!-- /.col -->
    </div>
    <!-- /.row -->
</section>
<script>
    $(document).ready(function(){
      $('#first').click();
        $("#checkAll").click(function(){
            $('input:checkbox').not(this).prop('checked', this.checked);
        });
    });
</script>
@endsection

Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]