Phase 4 work order profile depth
This commit is contained in:
@@ -1,16 +1,70 @@
|
||||
<x-app-layout>
|
||||
<x-slot name="header"><h2 class="text-xl font-semibold">{{ $profile->company_name }}</h2></x-slot>
|
||||
<div class="mx-auto max-w-5xl rounded border bg-white p-6">
|
||||
<p class="text-lg font-semibold">{{ $profile->headline }}</p>
|
||||
<p class="mt-4 whitespace-pre-line">{{ $profile->description }}</p>
|
||||
<dl class="mt-6 grid gap-4 md:grid-cols-2">
|
||||
<div><dt class="text-sm text-gray-500">Service categories</dt><dd class="whitespace-pre-line">{{ $profile->service_categories }}</dd></div>
|
||||
<div><dt class="text-sm text-gray-500">Hiring regions</dt><dd class="whitespace-pre-line">{{ $profile->hiring_regions }}</dd></div>
|
||||
<div><dt class="text-sm text-gray-500">Vendor onboarding</dt><dd class="whitespace-pre-line">{{ $profile->vendor_onboarding }}</dd></div>
|
||||
<div><dt class="text-sm text-gray-500">Payment terms</dt><dd class="whitespace-pre-line">{{ $profile->payment_terms }}</dd></div>
|
||||
</dl>
|
||||
<x-attachments :attachments="$profile->attachments" />
|
||||
<x-rating-summary :ratings="$profile->ratings" />
|
||||
<x-rating-form type="buyer_profile" :id="$profile->id" category="buyer_overall" />
|
||||
<x-slot name="header">
|
||||
<x-page-header
|
||||
title="{{ $profile->company_name }}"
|
||||
:description="$profile->headline"
|
||||
/>
|
||||
</x-slot>
|
||||
|
||||
<div class="mx-auto max-w-5xl space-y-6 px-4 py-8 sm:px-6 lg:px-8">
|
||||
<section class="tse-panel p-6">
|
||||
<div class="flex flex-wrap gap-2">
|
||||
@if ($profile->public_contact)
|
||||
<x-badge tone="emerald">Public contact</x-badge>
|
||||
@endif
|
||||
@if ($profile->hiring_regions)
|
||||
<x-badge tone="slate">{{ $profile->hiring_regions }}</x-badge>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
@if ($profile->visible('description'))
|
||||
<p class="mt-4 whitespace-pre-line text-slate-700 dark:text-slate-300">{{ $profile->description }}</p>
|
||||
@endif
|
||||
|
||||
<dl class="mt-6 grid gap-4 md:grid-cols-2">
|
||||
@if ($profile->visible('categories'))
|
||||
<div><dt class="text-sm text-slate-500 dark:text-slate-400">Service categories</dt><dd class="whitespace-pre-line text-slate-700 dark:text-slate-300">{{ $profile->service_categories }}</dd></div>
|
||||
@endif
|
||||
@if ($profile->visible('locations'))
|
||||
<div>
|
||||
<dt class="text-sm text-slate-500 dark:text-slate-400">Locations</dt>
|
||||
<dd class="mt-2 space-y-2">
|
||||
@forelse ($profile->locations ?? [] as $location)
|
||||
<x-badge tone="slate">{{ $location['name'] }}{{ ! empty($location['region']) ? ' | '.$location['region'] : '' }}</x-badge>
|
||||
@empty
|
||||
<span class="whitespace-pre-line text-sm text-slate-600 dark:text-slate-400">{{ $profile->hiring_regions }}</span>
|
||||
@endforelse
|
||||
</dd>
|
||||
</div>
|
||||
@endif
|
||||
@if ($profile->visible('policies'))
|
||||
<div>
|
||||
<dt class="text-sm text-slate-500 dark:text-slate-400">Hiring policies</dt>
|
||||
<dd class="mt-2 space-y-2">
|
||||
@forelse ($profile->hiring_policies ?? [] as $policy)
|
||||
<div class="rounded-md border border-slate-200 p-3 text-sm dark:border-slate-800">
|
||||
<p class="font-semibold text-slate-950 dark:text-white">{{ $policy['name'] }}</p>
|
||||
@if (! empty($policy['summary']))
|
||||
<p class="mt-1 text-slate-600 dark:text-slate-400">{{ $policy['summary'] }}</p>
|
||||
@endif
|
||||
</div>
|
||||
@empty
|
||||
<span class="text-sm text-slate-600 dark:text-slate-400">No structured policies listed.</span>
|
||||
@endforelse
|
||||
</dd>
|
||||
</div>
|
||||
@endif
|
||||
@if ($profile->visible('onboarding'))
|
||||
<div><dt class="text-sm text-slate-500 dark:text-slate-400">Vendor onboarding</dt><dd class="whitespace-pre-line text-slate-700 dark:text-slate-300">{{ $profile->vendor_onboarding }}</dd></div>
|
||||
@endif
|
||||
@if ($profile->visible('payment_terms'))
|
||||
<div><dt class="text-sm text-slate-500 dark:text-slate-400">Payment terms</dt><dd class="whitespace-pre-line text-slate-700 dark:text-slate-300">{{ $profile->payment_terms }}</dd></div>
|
||||
@endif
|
||||
</dl>
|
||||
|
||||
<x-attachments :attachments="$profile->attachments" />
|
||||
<x-rating-summary :ratings="$profile->ratings" />
|
||||
<x-rating-form type="buyer_profile" :id="$profile->id" category="buyer_overall" />
|
||||
</section>
|
||||
</div>
|
||||
</x-app-layout>
|
||||
|
||||
Reference in New Issue
Block a user