@extends('backEnd.layouts.master')
@section('title', 'Customer Insights — ' . ($data['profile']['name'] ?? ($customer->name ?? 'Customer')))
@push('styles')
@endpush
@section('content')
Customer Insights
{{ $data['profile']['name'] ?? '' }} · {{ $data['profile']['phone'] ?? '' }}
@include('backEnd.customer.partials.insights-dashboard')
@can('customers.block')
@if($customer ?? null)
@if(!($activeBlock ?? null))
@include('backEnd.customer.partials.block-modal', ['modalId' => 'blockCustomerModal', 'customer' => $customer, 'latestIp' => $latestIp ?? null])
@endif
@elseif(!($activeBlock ?? null) && !empty($data['profile']['phone']))
@include('backEnd.customer.partials.block-modal', [
'modalId' => 'blockGuestModal',
'customer' => null,
'phone' => $data['profile']['phone'],
'guestName' => $data['profile']['name'] ?? null,
'latestIp' => $latestIp ?? null,
])
@endif
@endcan
@endsection