63 lines
2.9 KiB
PHP
63 lines
2.9 KiB
PHP
@extends('user-layouts.user_template')
|
|
@section('content')
|
|
<div class="content-wrapper" style="min-height: 916px;">
|
|
<!-- Content Header (Page header) -->
|
|
<section class="content-header">
|
|
<h1>
|
|
Address Book
|
|
<!-- <small>Control panel</small> -->
|
|
</h1>
|
|
<ol class="breadcrumb">
|
|
<li><a href="#"><i class="fa fa-home"></i> Home</a></li>
|
|
<li class="active">Address Book</li>
|
|
</ol>
|
|
</section>
|
|
|
|
<!-- Main content -->
|
|
<section class="content">
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="box box-primary">
|
|
<div class="box-header with-border">
|
|
|
|
<!-- <h3 class="box-title">
|
|
Current Address Book
|
|
|
|
</h3> -->
|
|
@if(count($array_address_book) <= 0)
|
|
<a href="{{ url('user/address-book/create') }}" class="btn btn-primary pull-right btn-sm"><i class="fa fa-plus"></i> Add New Address</a>
|
|
@endif
|
|
</div>
|
|
<div class="box-body custom-box-body">
|
|
<table class="table table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<th>Full name</th>
|
|
<th>Address</th>
|
|
<th>Postcode</th>
|
|
<th>Phone Number</th>
|
|
<th class="text-center">Action</th>
|
|
</tr>
|
|
@foreach($array_address_book as $row)
|
|
<tr>
|
|
<td>{{ $row->Fullname }}</td>
|
|
<td>{{ $row->Address }}</td>
|
|
<td>{{ $row->State }}, {{ $row->City }}, {{ $row->ZipCode }}</td>
|
|
<td>{{ $row->ContactNumber }}</td>
|
|
<td class="text-center">
|
|
<a href="{{ url('user/address-book/edit/') }}/{{ $row->Id }}" class="btn btn-default btn-xs"><i class="fa fa-edit"></i> Edit</a>
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
<!-- /.content -->
|
|
</div>
|
|
@endsection
|