@props(['lead', 'duplicates']) id])) @if(empty($lead->user)) style="background-color: #ffa0a0;" @else style="background-color: #a0a6ff;" @endif @endif > {{$lead->id}}, {{$lead->user->id ?? 'X'}}, {{$lead->address->id ?? 'X'}} {{$lead->fullname ?? ''}} @if(!empty($lead->package)) {!! $lead->package->priceMonthly() ?? ''!!} {!! $lead->package->getDownSpeedUnit() ?? ''!!} @endif @if(empty($lead->user_id)) {!! link_to_route('admin.customers.edit', 'Incomplete sign-up', $parameters = [$lead->id], $attributes = ['class' => 'badge badge-warning']) !!} @endif
@if(!empty($lead->gpon_sn)) {!! $lead->gpon_sn !!}   @endif Installation: {!! config('enum.install_states')[$lead->install_state] !!}
@if(!empty($lead->getNextBooking())) {!! $lead->getNextBooking()->getWhatWhen() !!} @endif @if(!empty($mode)) {!! $lead->billingInfoBadge() !!} @endif {{$lead->created_at->format('j M y') ?? ''}} @if(!empty($lead->install_date)) {{$lead->install_date->format('j M y')}} @endif @if(!empty($lead->getArea())) {{ substr($lead->getArea()->name, 0, 10) }} @endif @if(!empty($lead)) @if(!$lead->isVoucher()) N/A @else @if(config('enum.voucher_consent_states')[$lead->voucher_consent] == 'none') none (customer yet to agree) @else {!! config('enum.voucher_consent_states')[$lead->voucher_consent] !!} @endif @endif @if(!empty($lead->voucher_unavailable_reason)) {{ $lead->voucher_unavailable_reason }} @endif @endif @if(auth()->user() && auth()->user()->isPermitted("super")) @if(!empty($duplicates[$lead->id]))
{{ print_r($duplicates[$lead->id]) }}
@endif @endif
{!! link_to_route('admin.customers.edit', 'Edit', $parameters = [$lead->id], $attributes = ['class' => 'btn btn-primary fontsmall']) !!} @if(auth()->user() && auth()->user()->isPermitted("super"))
{{ csrf_field() }} @method('DELETE')
@endif
@if(!empty($lead->address)) {!! $lead->address->full() !!} @endif @if(!empty($lead->user->email)) {{ $lead->user->email }} @elseif(!empty($lead->address->email)) {{ $lead->address->email }} @endif @if(!empty($lead->address->uprn))
[uprn: {{ $lead->address->uprn }}] @endif @if(!empty($lead->address->lat) && !empty($lead->address->lon)) [maps: {{ (float)$lead->address->lat }}, {{ (float)$lead->address->lon }}] @endif