![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/mcoil.corals.io/resources/views/front/customers/addresses/ |
@extends('layouts.front.app') @section('content') @include('layouts.front.other-menu') <section class="content container"> @include('layouts.errors-and-messages') @if($addresses) <div class="box"> <div class="box-body"> <h2>Addresses</h2> @if(!$addresses->isEmpty()) <table class="table table-striped table-hover table-condensed table-responsive table-responsive-md" id="order_table"> <tbody> <tr> <td>Alias</td> <td>Address 1</td> <td>State</td> <td>City</td> <td>Zip Code</td> <td>Country</td> <td>Status</td> <td>Actions</td> </tr> </tbody> <tbody> @foreach ($addresses as $address) <tr> <th><a href="{{ route('admin.customers.show', $customer->id) }}">{{ $address->alias }}</a></th> <td>{{ $address->address_1 }}<?php if (isset($address->address_2)) { if (isset($address->address_1)) { echo ', '; } echo $address->address_2; } ?></td> <td>{{ $address->state_code }}</td> <td>{{ $address->city }}</td> <td>{{ $address->zip }}</td> <td>{{ $address->country->name }}</td> <td>@include('layouts.status', ['status' => $address->status])</td> <td> <form action="{{ route('admin.addresses.destroy', $address->id) }}" method="post" class="form-horizontal"> {{ csrf_field() }} <input type="hidden" name="_method" value="delete"> <div class="btn-group"> <a href="{{ route('admin.addresses.edit', $address->id) }}" class="btn btn-primary btn-sm"><i class="fa fa-edit"></i> Edit</a> <button onclick="return confirm('Are you sure?')" type="submit" class="btn btn-danger btn-sm"><i class="fa fa-times"></i> Delete</button> </div> </form> </td> </tr> @endforeach </tbody> </table> <a href="{{ route('accounts', ['tab' => 'profile']) }}" class="btn btn-default">Back to My Account</a> @else <p class="alert alert-warning">No address created yet. <a href="{{ route('customer.address.create', auth()->id()) }}">Create</a></p> @endif </div> </div> @else <div class="box"> <div class="box-body"><p class="alert alert-warning">No addresses found.</p></div> </div> @endif </section> @include('layouts.front.call-to-action-footer') @endsection @section('js') <script type="text/javascript"> $(document).ready( function () { $('#order_table').DataTable(); } ); </script> @endsection