@extends('layouts.app') @section('title', 'Corporate Customers') @section('content') {{-- Fixed Top Action Bar --}}
Corporate Customers
{{-- Export Button Form --}}
{{-- Action Buttons --}} {{-- --}} {{-- Column Visibility Dropdown --}}
{{-- Search Input (Handles "Company Name") --}}
{{-- Bulk Actions Dropdown --}} @can('CSM Corporate Customers bulk assign')
@else
@endcan {{-- Filters Toggle Button --}}
{{-- Per Page Select --}}
{{-- Collapsible Filters Section --}}
{{-- Segment Filter --}}
{{-- User Filter --}}
{{-- Status Filter --}}

@forelse($customers as $customer) {{-- Updated Status Badge Logic --}} @empty @endforelse
ID Company Name Status Segment Name Created By User Primary Contact Designation Phone Email Address VAT Number Employees Events/Year 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 }} @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 }} {{ $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.
@if ($customers->total() > 0)
Showing {{ $customers->firstItem() }} to {{ $customers->lastItem() }} of {{ $customers->total() }} entries
@endif
{{ $customers->appends(request()->query())->links() }}
@endsection @push('js') @if(session('clear_selection')) @endif @endpush