@extends('layouts.public.app') @section('title', @$supplier['company'] . ' | Chemical Wholesale') @section('description', 'Checkout ' . @$supplier['company'] . ' on Chemical Wholesale') @section('keywords', @$supplier['company'] ?: 'Chemical Wholesale') @section('metaimage', @$supplier['getLogo']['path'] ? asset(@$supplier['getLogo']['path']) : asset('img/logo-lg2.png')) @section('content')
@include('public.supplier.supplier-page-header')
Company Information
Basic Information
{{--

Chemical Store is a specialized chemical store dedicated to providing a comprehensive range of chemicals for various purposes. From industrial applications to scientific research, our store caters to the diverse needs of businesses, laboratories, educational institutions, and individual consumers. With a focus on quality, safety, and customer satisfaction, Chemical Store is committed to being the premier destination for chemical procurement.

--}}
Business Type {{ ucfirst(@$supplier['business_type']) }}
Country / Region {{ @$supplier['getAddress'][0]['city'] . ', ' . @$supplier['getAddress'][0]['getCountry']['name_en'] }}
Year of Establish {{ ucfirst(@$supplier['establish_year']) }}
Website {{ @$supplier['company_url'] }}
Gallery
@php $galleries = !empty(@$supplier->getgallery) ? @$supplier->getgallery->whereNull('deleted_at')->where('section', 'gallery') : ''; @endphp
@if (!empty($galleries)) @else

No Galleries to show.

@endif @php function getYouTubeId($url) { preg_match( '/(?:youtube\.com\/(?:[^\/\n\s]+\/\S+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/)([^&\n]{11})/', $url, $matches, ); return $matches[1] ?? null; } @endphp @if (!empty($supplier['external_gallery_url'])) @php $youtubeId = getYouTubeId($supplier['external_gallery_url']); @endphp @if ($youtubeId)
@endif @endif {{-- --}}
Featured Products
@if (count($products) > 0)
@foreach ($products as $product) @php $images = @$product->getimages ? @$product->getimages->groupby('section') : ''; $averageRating = @$product->getreviews->avg('rating'); $filledStars = (int) $averageRating; $halfStar = $averageRating - $filledStars >= 0.5; @endphp
{{--
4.0
--}} product image

@if (count($product['assignedCategory']) > 0) Category: @foreach ($product['assignedCategory'] as $productCategory) {{ $productCategory['getCategory']['name'] }} @endforeach | @endif Rating: @for ($i = 1; $i <= 5; $i++) @if ($i <= $filledStars) @elseif ($i == $filledStars + 1 && $halfStar) @else @endif @endfor ({{ count(@$product->getreviews) }})

{{ @$product['name'] }}
Product SKU: {{ @$product['product_sku'] }}
Packaging: @if (!empty($product) && @$product->getpackage->count()) @foreach ($product->getpackage as $package) @if ($loop->first) {{ ucfirst(@$package->packaging_type) }} @endif @endforeach @endif
MOQ: @if (!empty($product) && @$product->getpackage->count()) @foreach ($product->getpackage as $package) @if ($loop->first) {{ ucfirst(@$package->min_quantity) }} @endif @endforeach @endif
Price: @if (!empty($product) && @$product->getpackage->count()) @foreach ($product->getpackage as $package) @if ($loop->first) ${{ number_format(@$package->price, 2) }} @endif @endforeach @endif

{{ @$product->getbusiness->company ?: 'N.A' }} @if (@$product->getbusiness->verified == '1') @endif

@php $supplierRatingCount = @$product->getbusiness->getSupplierRating->count(); $supplieraverageRating = @$product->getbusiness->getSupplierRating->avg( 'rating', ); @endphp

@php $product_location = @$product->getavailability->getwarehouse->getcountry ->name_en ?: @$product->getavailability->getcountry->name_en; @endphp From {{ $product_location ? ' ' . $product_location : 'N.A' }} @if ($supplierRatingCount > 0) | Rating: {{ number_format(@$supplieraverageRating, 1) ?: '0.0' }}/5.0 ({{ @$supplierRatingCount ?: 0 }} Reviews) @endif

View Details
@endforeach
@else

This supplier has no products available.

@endif
@if (@$supplier['hide_business_address'] == 1)
Warehouse Locations
@if (count(@$supplier['getAddress']) > 0)
@foreach ($supplier['getAddress'] as $location)
Location Name {{ @$location['location_name'] }}
Factory Location {{ @$location['address_1'] . ' ' . @$location['address_2'] . ' ' . @$location['city'] . ' ' . @$location['state'] . ' ' . @$location['zipcode'] . ', ' . @$location['getCountry']['name_en'] }}
Business Hours {{ @$location['from'] . ' - ' . @$location['to'] }}
@endforeach
@else

No warehouse locations to show.

@endif
@endif {{--
Main Market & Products
# Main Market Total Revenue(%) Main Product Total Buyers
1 Domestic Market 30.00% ZINC SULPHATE HEPTAHYDRATE 540
2 Southeast Asia 17.00% POTASSIUM SULPHATE 402
3 Mid East 10.00% AMMONIUM SULPHATE 350
4 Africa 10.00% Sulphate of Potash - Fertilizers 420
5 Domestic Market 7.00% POTASSIUM SULPHATE GRANULAR 350
--}} {{--
Supplier Information
Response Time

Less Than

1 Hr
Report Seller

Have an Issue?

Report Now
--}}
@endsection @push('css') @endpush @push('js') @endpush