@extends('layouts.app') @section('content')

Customer #{{ $customer->id }}

@can('update', $customer)Edit@endcan Back to List
{{ $customer->full_name ?: trim($customer->first_name.' '.$customer->last_name) }}
@foreach(['Email'=>'email','Phone'=>'phone','Alt Phone'=>'alt_phone','Company'=>'company','Designation'=>'designation','Department'=>'department','Industry'=>'industry','City'=>'city','State'=>'state','Pincode'=>'pincode','Country'=>'country','Source'=>'source','Primary Tag'=>'primary_tag'] as $label => $field)
{{ $label }}: {{ $customer->{$field} }}
@endforeach

Address: {{ $customer->address_line1 }} {{ $customer->address_line2 }}
Tags
@forelse($customer->tags as $tag) {{ $tag->name }} @empty
No tags
@endforelse
Custom Attributes (EAV)
@forelse($customer->attributes as $attr)
{{ $attr->key }}: {{ $attr->value }}
@empty
No custom attributes
@endforelse
@endsection