 <?php $__env->startSection('title'); ?> <?php echo app('translator')->getFromJson('Shipping Addresses'); ?> - <?php echo e(config('app.name')); ?> <?php $__env->stopSection(); ?> <?php $__env->startSection('meta-tags'); ?> <meta name="description" content="<?php echo app('translator')->getFromJson('View And Update Shipping Addresses'); ?>"> <?php $__env->stopSection(); ?> <?php $__env->startSection('meta-tags-og'); ?> <meta property="og:url" content="<?php echo e(url()->current()); ?>" /> <meta property="og:type" content="website" /> <meta property="og:title" content="<?php echo app('translator')->getFromJson('Shipping Addresses'); ?> - <?php echo e(config('app.name')); ?>" /> <meta property="og:description" content="<?php echo app('translator')->getFromJson('View And Update Shipping Addresses'); ?>" /> <meta property="og:image" content="<?php echo e(url('/img/'.config('settings.site_logo'))); ?>" /> <?php $__env->stopSection(); ?> <?php $__env->startSection('styles'); ?> <style> table a:not(.btn), .table a:not(.btn) { text-decoration: none; } .shipin-addres h4 { border-bottom: 1px solid #ccc; padding-bottom: 10px; } .shipin-addres strong { padding: 10px 0px; line-height: 30px; font-size: 15px; } .shipping-address { border: 1px solid #ccc; padding: 15px; margin-bottom: 30px; } .btn-area { border-top: 1px solid #ccc; padding-top: 15px; margin-top: 14px; } .btn-area .btn { padding: 4px 10px; } </style> <?php $__env->stopSection(); ?> <?php $__env->startSection('sidebar'); ?> <?php echo $__env->make('includes.user-account-sidebar', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?> <?php $__env->stopSection(); ?> <?php $__env->startSection('above_content'); ?> <div class="breadcrumb"> <div class="container"> <div class="breadcrumb-inner"> <ul class="list-inline list-unstyled"> <li><a href="<?php echo e(url('/')); ?>"><?php echo app('translator')->getFromJson('Home'); ?></a></li> <li class="active"><?php echo app('translator')->getFromJson('Shipping Addresses'); ?></li> </ul> </div> </div> </div> <?php $__env->stopSection(); ?> <?php $__env->startSection('content'); ?> <div class="col-md-9 user_account"> <div class="shopping-cart"> <div class="page-title"> <h2><?php echo app('translator')->getFromJson('Your Addresses'); ?></h2> </div> <?php if(session()->has('address_deleted')): ?> <div class="alert alert-danger alert-dismissible" role="alert"> <button type="button" class="close" data-dismiss="alert" aria-label="Close"> <span aria-hidden="true">&times;</span> </button> <?php echo e(session('address_deleted')); ?> </div> <?php endif; ?> <?php if(count($customers) > 0): ?> <?php $__currentLoopData = $customers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $customer): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="col-md-6"> <div class="shipping-address"> <h4><?php echo e($key+1); ?>. <?php echo app('translator')->getFromJson('Shipping Address'); ?></h4> <strong><?php echo e($customer->first_name . ' ' . $customer->last_name); ?></strong>,<br> <?php echo e($customer->address); ?><br> <?php echo e($customer->city . ', ' . $customer->state . ' - ' . $customer->zip); ?><br> <?php echo e($customer->country); ?>.<br> <strong><?php echo app('translator')->getFromJson('Phone:'); ?></strong> <?php echo e($customer->phone); ?><br> <strong><?php echo app('translator')->getFromJson('Email:'); ?></strong> <?php echo e($customer->email); ?><br> <div class="btn-area"> <a class="btn btn-primary btn-xs pull-left" href="<?php echo e(route('front.addresses.edit', $customer->id)); ?>"><?php echo app('translator')->getFromJson('Edit'); ?></a> <?php echo Form::model($customer, ['method'=>'delete', 'action'=>['FrontCustomersController@destroy', $customer->id], 'id'=> 'delete-form-'.$customer->id, 'style'=>'display: none;']); ?> <?php echo Form::close(); ?> <a href="" class='btn btn-xs btn-danger pull-right' onclick=" if(confirm('<?php echo app('translator')->getFromJson('Are you sure you want to delete this?'); ?>')) { event.preventDefault(); $('#delete-form-<?php echo e($customer->id); ?>').submit(); } else { event.preventDefault(); } " ><?php echo app('translator')->getFromJson('Remove'); ?></a> <div class="clearfix"></div> </div> <div class="clearfix"></div> </div> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php else: ?> <div class="row text-center"> <div class="empty-bag"> <div class="empty-bag-icon"> <img src="<?php echo e(asset('/img/icons/address.png')); ?>" class="img-responsive m-a" alt="<?php echo app('translator')->getFromJson('No Order History'); ?>" width="100"> </div> <h3 class="text-center text-muted"><?php echo app('translator')->getFromJson('NO ORDERS HISTORY FOUND'); ?></h3> </div> </div> <?php endif; ?> </div> </div> <?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.front', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>