@extends('layouts.app') @section('title', 'Corporate Customers') @section('content') {{-- Fixed Top Action Bar --}}
| ID | Company Name | Status | Segment Name | Created By User | Primary Contact | Designation | Phone | Address | VAT Number | Employees | Events/Year | Engagement Types | Industry | Sector | HR Contact | HR Phone/Email | Mkt Contact | Mkt Phone/Email | Welfare Contact | Welfare Phone/Email | Created At | Updated At | ||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $customer->id }} | {{ $customer->company_name }} | {{-- Updated Status Badge Logic --}}@php $status = strtolower($customer->customer_status ?? ''); $badgeClass = 'badge-blue'; // Default if ($status === 'inactive') { $badgeClass = 'badge-danger'; } elseif ($status === 'prospect') { $badgeClass = 'badge-success'; } @endphp {{ ucfirst($customer->customer_status ?? 'N/A') }} | {{ $customer->segment ? $customer->segment->name : '-' }} | @if($customer->user) {{ $customer->user->name }} @else - @endif | {{ $customer->primary_contact_name }} | {{ $customer->primary_contact_designation }} | {{ $customer->primary_contact_phone }} | {{ $customer->primary_contact_email }} | {{ Str::limit($customer->business_address, 25) }} | {{ $customer->vat_number }} | {{ $customer->no_of_employees_in_company }} | {{ $customer->no_of_events_done_per_year }} | {{ Str::limit($customer->types_of_events_done_per_employee_engagement, 20) }} | {{ $customer->type_of_industry }} | {{ $customer->sector }} | {{ $customer->hr_contact_person_name }} | {{ $customer->hr_contact_person_phone_email }} | {{ $customer->marketing_contact_person_name }} | {{ $customer->marketing_contact_person_phone_email }} | {{ $customer->welfare_contact_person_name }} | {{ $customer->welfare_contact_person_phone_email }} | {{ $customer->created_at ? $customer->created_at->format('Y-m-d') : '-' }} | {{ $customer->updated_at ? $customer->updated_at->format('Y-m-d') : '-' }} | |
| No corporate customers found. | ||||||||||||||||||||||||