@extends('layouts.main') @section('page-title') {{ __('Manage Customers') }} @endsection @section('page-breadcrumb') {{ __('Customers') }} @endsection @push('scripts') @endpush @section('page-action')
@stack('addButtonHook') @can('customer import') @endcan @can('customer create') @endcan
@endsection @section('content')
@if (Gate::check('customer edit') || Gate::check('customer delete') || Gate::check('customer show')) @endif @foreach ($customers as $k=>$customer) @if (!empty($customer['customer_id'])) @else @endif @if (Gate::check('customer edit') || Gate::check('customer delete') || Gate::check('customer show')) @endif @endforeach
# {{__('Name')}} {{__('Contact')}} {{__('Email')}} {{__('Balance')}}{{ __('Action') }}
@can('customer show') {{ Modules\Account\Entities\Customer::customerNumberFormat($customer['customer_id']) }} @else {{ Modules\Account\Entities\Customer::customerNumberFormat($customer['customer_id']) }} @endcan --{{$customer['name']}} {{$customer['contact']}} {{$customer['email']}} {{ currency_format_with_sym($customer['balance'])}} @if($customer->is_disable == 1) @if (!empty($customer['customer_id'])) @can('customer show') @endcan @endif @can('customer edit') @endcan @if (!empty($customer['customer_id'])) @can('customer delete')
{{Form::open(array('route'=>array('customer.destroy', $customer['id']),'class' => 'm-0'))}} @method('DELETE') {{Form::close()}}
@endcan @endif
@else
@endif
@endsection