Anons79 Mini Shell

Directory : /home/proudlyafrican/public_html/resources/views/admin/address_and_number/
Upload File :
Current File : /home/proudlyafrican/public_html/resources/views/admin/address_and_number/list.blade.php

@extends('admin.head')
@section('middle')
<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


    @if(count($addresses)>0)
    @else
    <a href="{{ url('add_address_and_number') }}"><button class="btn btn-primary" style="float: right"><i class="glyphicon glyphicon-plus"></i>Add Address And Number</button></a>
    @endif

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

            <div class="box">
                <div class="box-header">
                    <h3 class="box-title">Address And Number</h3>
                </div>
                <!-- /.box-header -->
                <div class="box-body">
                    <table id="example1" class="table table-bordered table-striped">
                        <thead>
                        <tr>

                            <th>Address</th>
                            <th>Call Number</th>
                            <th>WhatsApp Number</th>

                            <th>Action</th>
                        </tr>
                        </thead>
                        <tbody>
                        <?php $count=1; ?>
                        @foreach($addresses as $address)
                        <tr>
                            <td><?php  echo $address->address;?></td>
                            <td>{{ $address->call_number }}</td>
                            <td>{{ $address->whatsapp_number }}</td>

                            <td style="width: 20%">

                                <a  style="margin: 5px;" href="{{ url('edit_address_and_number') }}/{{ $address->id }}" class="btn btn-primary"><i class="glyphicon glyphicon-pencil"></i></a>

                                <a data-toggle="modal" data-target="#confirm-delete" data-href="{{ url('delete_address_and_number') }}/{{ $address->id }}" class="btn btn-danger"><i class="glyphicon glyphicon-trash"></i></a></td>


                        </tr>
                        <?php $count=$count+1; ?>
                        @endforeach
                        </tbody>

                    </table>
                </div>
                <!-- /.box-body -->
            </div>
            <!-- /.box -->
        </div>
        <!-- /.col -->
    </div>
    <!-- /.row -->
</section>
@endsection

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