@extends('layouts.master') @section('page_title', 'Customer Details') @section('title', 'Customer Details') @section('main_item', 'Customer') @section('sub_item', 'Customer Details') @section('content')
| Action | Name | Phone No | Phone No 2 | Address | Order Count | Label |
|---|---|---|---|---|---|---|
|
View
@if (auth()->user()->can('customer_edit'))
Edit
@endif
@if (auth()->user()->can('customer_delete'))
Delete
@endif
@if (auth()->user()->can('customer_edit'))
@if($paid_count > 1)
Change Premium
@endif
@endif
Mark as Fake
|
@if (!empty($customer->name)) {{ $customer->name }} @endif | {{ $customer->mobile }} | @if (!empty($customer->mobile_2)) {{ $customer->mobile_2 }} @else {{ $customer->landline }} @endif | @php $address = $customer->landmark; @endphp {{ $address }} | {{ $customer->sales->count() }} |
@php
if($paid_count > 1 && $paid_count <= 2) {
if($customer->is_default == 0){
$label = 'More than one order';
if($customer->is_default == 6){
$label = 'More than one order Outlet customer'; } }else if($customer->is_default == 4){ $label = 'Premium'; }else if($customer->is_default == 2){ $label = 'Banned'; }else{ $label = 'More than one order'; if($customer->is_default == 6){ $label = 'More than one order Outlet customer'; } } } else if($customer->is_default == 2) { $label = 'Banned'; } else if($customer->is_default == 6) { $label = 'Outlet customer'; }else{ if($paid_count > 2 ) { if($customer->is_default == 0){ $label = 'Permanent customer'; }else if($customer->is_default == 4){ $label = 'Premium'; }else if($customer->is_default == 2){ $label = 'Banned'; }else{ $label = 'Premium eligible'; if($customer->is_default == 6){ $label = 'Premium eligible Outlet customer'; } } }else if($paid_count == 1 && $return_count == 0 ){ $label = 'one time order'; if($customer->is_default == 6){ $label = 'One time order Outlet customer'; } }else if($paid_count == 0){ $label = 'No paid order yet'; if($customer->is_default == 6){ $label = 'no paid order yet Outlet customer'; } }else{ $label = ''; } } @endphp {!! $label !!} |