@extends('layouts.dashboard.superadminapp') @section('title', 'Customer/Vendor List') @section('styles') @endsection @section('content')
@if (session('success')) @endif @if (session('error')) @endif @if (session('errorRows')) @endif
{{ $customers->count() }}
Total Records
All entries
{{ $customers->where('company_role', 'Customer')->count() }}
Customers
Active customers
{{ $customers->where('company_role', 'Vendor')->count() }}
Vendors
Suppliers
{{ $customers->where('company_role', 'Both')->count() }}
Both
Customer & Vendor
Quick Actions
Customer & Vendor Directory
Add New
@foreach ($customers as $index => $customer) @endforeach
# Role Company Contact Type GST Actions
{{ $index + 1 }} @if($customer->company_role == 'Customer') Customer @elseif($customer->company_role == 'Vendor') Vendor @else Both @endif
{{ Str::limit($customer->company, 25) }} @if ($customer->status == 1) @else @endif @if($customer->company_nickname)
{{ $customer->company_nickname }} @endif
{{ Str::limit($customer->email, 20) }}
{{ $customer->mobile }}
{{ $customer->company_type }} {{ $customer->gstno }}
@endsection @section('scripts') @endsection