@extends('layouts.dashboard.app') @section('title', 'All Companies | Chemical Wholesale') @section('content')

All Companies

Manage all your companies.

@csrf
{{-- Add New --}} Reset
@include('layouts.dashboard.flash')
{{-- --}} @php $i=0; @endphp @if (count($business) > 0) @foreach ($business as $b) {{-- --}} @php $i++; @endphp @endforeach @else @endif
Company Address Email Phone Role Contact User Approval StatusReview Score
logo {{ ucfirst(@$b['company']) }} @if (!empty($b->business->getaddress) && $b->business->getaddress->count() > 0) @php $address = $b->business->getaddress->first(); $ad = !empty($address->location_name) ? $address->location_name . ', ' : ''; $ad .= !empty($address->address_1) ? $address->address_1 . ', ' : ''; $ad .= !empty($address->address_2) ? $address->address_2 . ', ' : ''; $ad .= !empty($address->district) ? $address->district . ', ' : ''; $ad .= !empty($address->state_id) ? $address->state_id . ', ' : ''; $ad .= !empty($address->country_id) ? $address->country_id : ''; @endphp @endif {{ !empty(@$ad) ? trim(@$ad, ',') : '--' }} {{ @$b['company_email'] }} {{ @$b['company_phone'] }} {{ @$b['company_role'] ?? '--' }} {{ @$b['contact_person_name'] ?: 'N.A' }}
{{ @$b['support_email'] ?: '' }}
{{ @$b['support_phone'] ?: '' }}
10/10 {{ (@$b->approved == 1) ? 'Pending Review' : ((@$b->approved == 2) ? 'Approved':'Disapproved') }}
No companies to show.
@endsection @push('css') @endpush @push('js') @endpush