Skip to content

Instantly share code, notes, and snippets.

@jongravois
Created May 27, 2020 22:15
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/9ee3be66864cb8fd979dc88d6be7f901 to your computer and use it in GitHub Desktop.
Save jongravois/9ee3be66864cb8fd979dc88d6be7f901 to your computer and use it in GitHub Desktop.
<div>
<tr>
<td>{{$legalName}}</td>
<td>{{$companyCode}}</td>
<td>{{$location}}</td>
<td>{{$country}}</td>
<td>{{$phone}}</td>
<td>
@if($reporter_email)
<a href="mailto:{{$reporter_email}}">
@endif
<span class="{{$reporter_email ? 'text-blue-600 underline' : ''}}">
{{$reporter}}
</span>
@if($reporter_email)
</a>
@endif
</td>
<td>
@if($ar_email)
<a href="mailto:{{$ar_email}}">
@endif
<span class="{{$ar_email ? 'text-blue-600 underline' : ''}}">
{{$ar_contact}}
</span>
@if($ar_email)
</a>
@endif
</td>
<td class="flex items-center">
<span tooltip="ITAR">
@if($deniedPartyChecked)
@if($deniedPartyCleared)
@svg('solid/exclamation-triangle', 'mr-2 text-nephritis-500')
@else
@svg('solid/exclamation-triangle', 'mr-2 text-orange-500')
@endif
@else
<span class="cursor-pointer" wire:click="checkDenied({{$cmpID}})">
@svg('solid/exclamation-triangle', 'mr-2 text-silver-500')
</span>
@endif
</span>
@if($statusID < 3)
@if($reporter_email)
<span tooltip="Send Agreement" class="cursor-pointer"
wire:click.prevent="resend({{$cafID}})">
@svg('solid/envelope', 'mr-2 text-blue-500')
</span>
@else
<span tooltip="Unable to send without email">
@svg('solid/envelope', 'mr-2 text-silver-500')
</span>
@endif
@endif
@if($statusID > 2 && $statusID < 7)
<span tooltip="CAF Form" class="cursor-pointer">
<a href="{{env('CAF_PATH')}}{{$companyCode}}" target="_blank">
@svg('solid/tractor', 'mr-2 text-orange-500')
</a>
</span>
<span tooltip="Worksheet" class="cursor-pointer">
<a href="/caf/worksheet/{{$cafID}}">
@svg('solid/balance-scale', 'mr-2 text-blue-500')
</a>
</span>
<span tooltip="Uploaded to Quantum" class="cursor-pointer"
wire:click="cafUploaded({{$cafID}})">
@if($statusID > 5)
@svg('solid/upload', 'mr-2 text-burgundy-500')
@else
@svg('solid/upload', 'mr-2 text-silver-500')
@endif
</span>
@if($statusID > 6)
<span tooltip="Unlocked" class="cursor-pointer"
wire:click="cafProcessed({{$cafID}})">
@svg('solid/lock', 'mr-2 text-gold')
</span>
@else
<span tooltip="Unlocked">
@svg('solid/lock', 'mr-2 text-silver-500')
</span>
@endif
@endif
<span tooltip="Delete" class="cursor-pointer"
wire:click.prevent="deleteCaf({{$cafID}})">
@svg('solid/times', 'mr-2 text-red-500')
</span>
</td>
</tr>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment