@extends('layouts.app') @section('title', 'Linktree Ekspedisi ' . $vendor->name . ' - WSPS') @section('content')
{{ substr($vendor->name, 0, 2) }}

{{ $vendor->name }}

Mitra Resmi Warehouse Balikpapan FY26

@if($destination && $destination !== 'Tujuan')
Detail Rencana Pengiriman Tervalidasi
Tujuan: {{ $destination }}
Layanan: {{ $service }}
@if($cost)
Estimasi Tarif: Rp {{ number_format((float)$cost, 0, ',', '.') }}
@endif @if($leadTime)
Lead Time: {{ $leadTime }}
@endif
@endif
@php $encodedMsg = urlencode("Halo, saya dari Warehouse Balikpapan ingin koordinasi terkait:\n\n" . $shipmentInfo); @endphp @forelse($vendor->activeLinks as $link) @php // Dynamic URL adjustment: if it's a whatsapp url, append pre-filled text if not already present $finalUrl = $link->url; if (str_contains($finalUrl, 'wa.me') && !str_contains($finalUrl, 'text=')) { $separator = str_contains($finalUrl, '?') ? '&' : '?'; $finalUrl .= $separator . 'text=' . $encodedMsg; } // Choose style based on target_type $btnClass = match($link->target_type) { 'ekspedisi' => 'bg-emerald-600 hover:bg-emerald-700 text-white shadow-md hover:shadow-emerald-200 hover:shadow-lg', 'petugas_gudang' => 'bg-[#0048ba] hover:bg-[#003d9e] text-white shadow-md hover:shadow-blue-200 hover:shadow-lg', default => 'bg-slate-800 hover:bg-slate-900 text-white shadow-sm', }; $iconClass = match($link->icon) { 'whatsapp' => 'fa-brands fa-whatsapp text-xl text-emerald-300', 'truck' => 'fa-solid fa-truck-fast text-xl text-white', 'user' => 'fa-solid fa-user-tie text-xl text-blue-200', 'phone' => 'fa-solid fa-phone text-xl text-white', 'box' => 'fa-solid fa-box text-xl text-white', default => 'fa-solid fa-arrow-up-right-from-square text-base text-white/80', }; @endphp
{{ $link->title }} @if($link->target_type === 'ekspedisi') CS / Dispatcher {{ $vendor->name }} @elseif($link->target_type === 'petugas_gudang') {{ $warehouseOfficerName }} ({{ $warehouseName }}) @endif
@empty
Hubungi Ekspedisi ({{ $vendor->name }}) WhatsApp Dispatcher
Hubungi Petugas Gudang {{ $warehouseOfficerName }} (Balikpapan)
@endforelse
@endsection @push('scripts') @endpush