@extends('layout.app') @section('_style') @php $roleGlobal = auth()->user()?:[]; @endphp @endsection @section('content')
 {{ $customer->full_name }}

{{number_format($customer->wallet)}} VNĐ

Số dư ví

{{number_format($customer->orders->sum('gross_revenue'))}} VNĐ

Giá trị

Mối quan hệ

{{ @$customer->status->name }}

Nguồn

{{ @$customer->source_customer->name }}

Người tạo

{{ @$customer->marketing->full_name }}

  Ngày Tạo

{{ \Carbon\Carbon::parse($customer->created_at)->format('d/m/Y') }}

Đơn

{{ $customer->orders->count() }}
{{--
Liên hệ--}} {{--
--}} {{--
--}} {{--

 {{ $customer->full_name }}

--}} {{--

--}} {{--

 {{ $customer->phone}}

--}} {{--
--}} {{--
--}} {{-- --}} {{--
--}} {{--
--}} {{--
--}} {{--
--}}

Thông tin khách hàng

Mã KH:

 {{$customer->account_code}}

Tên KH:

 {{ $customer->full_name }}

Chi nhánh:

 {{ @$customer->branch->name }}

Người phụ trách:

 {{ @$customer->telesale->full_name }}

CSKH:

 {{ @$customer->cskh->full_name }}

Liên hệ cuối:

 {{ @diffTime($customer->last_time) }}

Người giới thiệu:

 {{ @$customer->gioithieu->full_name }}

{{--

Nhóm tính cách:

--}} {{--

 {{ @$customer->genitive->name }}

--}} {{--
--}}

Nguồn KH:

 {{ @$customer->source_customer->name }}

Sinh nhật:

 {{ $customer->birthday }}

Mối quan hệ:

 {{ @$customer->status->name }}

Ngày tạo:

 {{ $customer->created_at }}

Giới tính:

 {{ $customer->genderText }}

Mô tả:

 {{ $customer->description }}

Số đơn hàng:

 {{ $customer->orders->count() }}

Tổng doanh thu:

 {{number_format($customer->orders->sum('gross_revenue'))}}

Tổng số tương tác:

 0

Giá trị:

 {{number_format($customer->orders->sum('gross_revenue'))}}

@if(count($customer->historyStatus))
@include('customers._include.container_arrow')
@endif

{{$title}}

{!! Form::open(array('url' => url('group_comments/'.request()->segment(count(request()->segments())) ), 'method' => 'post', 'files'=> true,'id'=>'fvalidate')) !!}
{!! Form::textArea('messages', null, array('class' => 'form-control', 'rows' => 3)) !!}

{{ Form::close() }}
@include('group_comment.ajax')
{!! Form::select('the_rest', $the_rest, null, array('class' => 'form-control','id'=>'the_rest','placeholder'=>'Tất cả đơn')) !!}
@if($roleGlobal->permission('order.add')) Tạo mới @endif
@include('order.role_type_modal')
@include('schedules.index')
{{--@if($roleGlobal->permission('tasks.index'))--}} Tạo mới {{--@endif--}}
@include('tasks.modal')
{{-- Modal thêm --}} @include('schedules.modal') {{-- END Modal thêm --}}
@if(count($wallet)) @include('wallet.history') @endif
@if(count($history)) @include('sms.history') @endif
@include('customers.modal-sendSMS')
{{--
--}} {{-- @if(count($customer_post))--}} {{-- @include('post.history')--}} {{-- @endif--}} {{--
--}}
@include('call_center.customer')
@include('albums.index')
@include('gifts.ajax')
@include('customers._include.contact')
@endsection @section('_script') {{--@include('message_fb.js_chat_app')--}} @endsection