|
| 1 | + @php |
| 2 | + $dateFields = [ |
| 3 | + 'Effective Date', |
| 4 | + 'Registration Date', |
| 5 | + 'Last Annual Return', |
| 6 | + 'Next Annual Return', |
| 7 | + 'Next Financial Statement Due', |
| 8 | + 'Last Accounts', |
| 9 | + 'Last AGM', |
| 10 | + 'Financial Year End', |
| 11 | + ]; |
| 12 | +
|
| 13 | + $details = [ |
| 14 | + 'Company Number' => $company->company_number, |
| 15 | + 'Custom Name' => $company->custom, |
| 16 | + 'Company Type' => $company->company_type_code . ' | ' . $company->company_type, |
| 17 | + 'Status' => $company->status, |
| 18 | + 'Status Code' => $company->company_status_code, |
| 19 | + 'Effective Date' => $company->effective_date, |
| 20 | + 'Registration Date' => $company->registration_date, |
| 21 | + 'Last Annual Return' => $company->last_annual_return, |
| 22 | + 'Next Annual Return' => $company->next_annual_return, |
| 23 | + 'Next Financial Statement Due' => $company->next_financial_statement_due, |
| 24 | + 'Last Accounts' => $company->last_accounts, |
| 25 | + 'Last AGM' => $company->last_agm, |
| 26 | + 'Financial Year End' => $company->financial_year_end, |
| 27 | + 'Place of Business' => $company->place_of_business, |
| 28 | + 'Address' => $company->postcode . ' | ' . $company->address_line_1 . ' , ' . $company->address_line_2, |
| 29 | + 'Address Line 3' => $company->address_line_3, |
| 30 | + 'Address Line 4' => $company->address_line_4, |
| 31 | + ]; |
| 32 | + @endphp |
| 33 | + |
| 34 | + <div> |
| 35 | + <div class="px-4 sm:px-0"> |
| 36 | + <h3 class="text-base/7 font-semibold text-gray-900">{{ $company->name }}</h3> |
| 37 | + <p class="mt-1 max-w-2xl text-sm/6 text-gray-500">Company details.</p> |
| 38 | + </div> |
| 39 | + <div class="mt-6 border-t border-gray-100"> |
| 40 | + |
| 41 | + <dl class="divide-y divide-gray-100"> |
| 42 | + |
| 43 | + |
| 44 | + @foreach ($details as $label => $value) |
| 45 | + @if (!empty($value)) |
| 46 | + <div class="px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"> |
| 47 | + <dt class="text-sm/6 font-medium text-gray-900">{{ $label }}</dt> |
| 48 | + <dd class="mt-1 text-sm/6 text-gray-700 sm:col-span-2 sm:mt-0"> |
| 49 | + @if (in_array($label, $dateFields)) |
| 50 | + {{ \Carbon\Carbon::parse($value)->format('Y-m-d') }} |
| 51 | + @else |
| 52 | + {{ $value }} |
| 53 | + @endif |
| 54 | + </dd> |
| 55 | + </div> |
| 56 | + @endif |
| 57 | + @endforeach |
| 58 | + </dl> |
| 59 | + |
| 60 | + <dl class="divide-y divide-gray-100"> |
| 61 | + <div class="px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"> |
| 62 | + <dt class="text-sm/6 font-medium text-gray-900">Attachments</dt> |
| 63 | + <dd class="mt-2 text-sm text-gray-900 sm:col-span-2 sm:mt-0"> |
| 64 | + <ul role="list" class="divide-y divide-gray-100 rounded-md border border-gray-200"> |
| 65 | + {{-- <li class="flex items-center justify-between py-4 pl-4 pr-5 text-sm/6"> |
| 66 | + <div class="flex w-0 flex-1 items-center"> |
| 67 | + <svg class="size-5 shrink-0 text-gray-400" viewBox="0 0 20 20" fill="currentColor" |
| 68 | + aria-hidden="true" data-slot="icon"> |
| 69 | + <path fill-rule="evenodd" |
| 70 | + d="M15.621 4.379a3 3 0 0 0-4.242 0l-7 7a3 3 0 0 0 4.241 4.243h.001l.497-.5a.75.75 0 0 1 1.064 1.057l-.498.501-.002.002a4.5 4.5 0 0 1-6.364-6.364l7-7a4.5 4.5 0 0 1 6.368 6.36l-3.455 3.553A2.625 2.625 0 1 1 9.52 9.52l3.45-3.451a.75.75 0 1 1 1.061 1.06l-3.45 3.451a1.125 1.125 0 0 0 1.587 1.595l3.454-3.553a3 3 0 0 0 0-4.242Z" |
| 71 | + clip-rule="evenodd" /> |
| 72 | + </svg> |
| 73 | + <div class="ml-4 flex min-w-0 flex-1 gap-2"> |
| 74 | + <span class="truncate font-medium">resume_back_end_developer.pdf</span> |
| 75 | + <span class="shrink-0 text-gray-400">2.4mb</span> |
| 76 | + </div> |
| 77 | + </div> |
| 78 | + <div class="ml-4 shrink-0"> |
| 79 | + <a href="#" |
| 80 | + class="font-medium text-indigo-600 hover:text-indigo-500">Download</a> |
| 81 | + </div> |
| 82 | + </li> |
| 83 | + <li class="flex items-center justify-between py-4 pl-4 pr-5 text-sm/6"> |
| 84 | + <div class="flex w-0 flex-1 items-center"> |
| 85 | + <svg class="size-5 shrink-0 text-gray-400" viewBox="0 0 20 20" fill="currentColor" |
| 86 | + aria-hidden="true" data-slot="icon"> |
| 87 | + <path fill-rule="evenodd" |
| 88 | + d="M15.621 4.379a3 3 0 0 0-4.242 0l-7 7a3 3 0 0 0 4.241 4.243h.001l.497-.5a.75.75 0 0 1 1.064 1.057l-.498.501-.002.002a4.5 4.5 0 0 1-6.364-6.364l7-7a4.5 4.5 0 0 1 6.368 6.36l-3.455 3.553A2.625 2.625 0 1 1 9.52 9.52l3.45-3.451a.75.75 0 1 1 1.061 1.06l-3.45 3.451a1.125 1.125 0 0 0 1.587 1.595l3.454-3.553a3 3 0 0 0 0-4.242Z" |
| 89 | + clip-rule="evenodd" /> |
| 90 | + </svg> |
| 91 | + <div class="ml-4 flex min-w-0 flex-1 gap-2"> |
| 92 | + <span class="truncate font-medium">coverletter_back_end_developer.pdf</span> |
| 93 | + <span class="shrink-0 text-gray-400">4.5mb</span> |
| 94 | + </div> |
| 95 | + </div> |
| 96 | + <div class="ml-4 shrink-0"> |
| 97 | + <a href="#" |
| 98 | + class="font-medium text-indigo-600 hover:text-indigo-500">Download</a> |
| 99 | + </div> |
| 100 | + </li> --}} |
| 101 | + </ul> |
| 102 | + </dd> |
| 103 | + </div> |
| 104 | + </dl> |
| 105 | + |
| 106 | + <dl class="divide-y divide-gray-100"> |
| 107 | + <div class="px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"> |
| 108 | + <dt class="text-sm/6 font-medium text-gray-900">Actions</dt> |
| 109 | + <dd class="mt-2 text-sm text-gray-900 sm:col-span-2 sm:mt-0"> |
| 110 | + <div class="flex flex-col gap-2 text-right"> |
| 111 | + <flux:button wire:click="$set('companyDetailsModal', false)" |
| 112 | + wire:keydown.escape.window="$set('companyDetailsModal', false)"> |
| 113 | + Close |
| 114 | + </flux:button> |
| 115 | + </div> |
| 116 | + </dd> |
| 117 | + </div> |
| 118 | + </dl> |
| 119 | + |
| 120 | + </div> |
| 121 | + </div> |
0 commit comments