@extends('layouts.admin') @php $profile=asset(Storage::url('uploads/avatar/')); @endphp @push('script-page') @endpush @section('page-title') {{__('Manage Customers')}} @endsection @section('breadcrumb') @endsection @section('action-btn')
@endsection @section('content')
@foreach ($customers as $k=>$customer) @endforeach
# {{__('Name')}} {{__('Contact')}} {{__('Email')}} {{__('Balance')}} {{__('Last Login')}} {{__('Action')}}
@can('show customer') {{ AUth::user()->customerNumberFormat($customer['customer_id']) }} @else {{ AUth::user()->customerNumberFormat($customer['customer_id']) }} @endcan {{$customer['name']}} {{$customer['contact']}} {{$customer['email']}} {{\Auth::user()->priceFormat($customer['balance'])}} {{ (!empty($customer->last_login_at)) ? $customer->last_login_at : '-' }} @if($customer['is_active']==0) @else @can('show customer') @endcan @can('edit customer') @endcan @can('delete customer')
{!! Form::open(['method' => 'DELETE', 'route' => ['customer.destroy', $customer['id']],'id'=>'delete-form-'.$customer['id']]) !!} {!! Form::close() !!}
@endcan @endif
@endsection