This commit is contained in:
Codex
2026-07-10 11:18:07 -05:00
parent 42db078e47
commit e5a95a0687
32 changed files with 471 additions and 11 deletions
+5
View File
@@ -1,11 +1,16 @@
<x-app-layout>
<x-slot name="header"><h2 class="text-xl font-semibold">Buyers</h2></x-slot>
<div class="mx-auto max-w-7xl space-y-4 p-6">
<form method="GET" action="{{ route('buyers.index') }}" class="flex gap-3 rounded border bg-white p-4">
<input name="q" value="{{ request('q') }}" placeholder="Search buyers..." class="w-full rounded-md border-gray-300">
<x-primary-button>Search</x-primary-button>
</form>
@foreach ($profiles as $profile)
<a href="{{ route('buyers.show', $profile) }}" class="block rounded border bg-white p-4 shadow-sm">
<h3 class="font-semibold">{{ $profile->company_name }}</h3>
<p class="text-sm text-gray-600">{{ $profile->headline }}</p>
<p class="mt-2 text-sm">{{ $profile->hiring_regions }}</p>
<x-rating-summary :ratings="$profile->ratings" />
</a>
@endforeach
{{ $profiles->links() }}
+2
View File
@@ -10,5 +10,7 @@
<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" />
</div>
</x-app-layout>