Skip to content

Instantly share code, notes, and snippets.

@jongravois
Created January 19, 2021 20:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jongravois/69906e17c52894b260f0ec608c036c6b to your computer and use it in GitHub Desktop.
Save jongravois/69906e17c52894b260f0ec608c036c6b to your computer and use it in GitHub Desktop.
@push('pagetitle', 'Company Harvester')
<x-page.spinner-layout>
<x-page.header title="Company Harvester">
<div>{{collect($companies)->count()}}</div>
</x-page.header>
<div class="px-8 py-4 space-y-4">
<div class="w-full">
<x-table header>
<x-slot name="head">
<x-table.heading class="w-1/5">Code</x-table.heading>
<x-table.heading class="w-1/5">Company</x-table.heading>
<x-table.heading class="w-3/5">Sales</x-table.heading>
</x-slot>
<x-slot name="body">
@forelse($companies as $company)
<livewire:customers.company-row
:company="$company" :key="$company['id']" />
@empty
<x-table.row>
<td colspan="3"><strong>No unclaimed companies</strong></td>
</x-table.row>
@endforelse
</x-slot>
</x-table>
</div>
</div>
</x-page.spinner-layout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment