{{ $loop->index + 1 }}. |
{{ \Carbon\Carbon::parse($allocation_letter->date)->format('jS F Y') }} |
{{ strtoupper(optional($allocation_letter->season)->name) }} |
{{ strtoupper(optional($allocation_letter->port)->name) }} |
{{ strtoupper($allocation_letter->ref_number) }} |
allocation_tonnages->count() > 0 || $allocation_letter->complete_status == 'yes') onclick="event.preventDefault();" disabled='disabled' oncontextmenu="return false;" @endif>EDIT
|
@if ($allocation_letter->allocation_status == 'revise')
complete_status == 'yes' || $allocation_letter->allocation_status == 'cancel') onclick="event.preventDefault();" disabled="disabled" oncontextmenu="return false;" @else @endif>ADD
CONTRACT |
@else
complete_status == 'yes' || $allocation_letter->allocation_status == 'cancel') onclick="event.preventDefault();" disabled="disabled" oncontextmenu="return false;" @else @endif>ADD
CONTRACT |
@endif
@if ($allocation_letter->allocation_status == 'revise')
complete_status == 'yes' || $allocation_letter->allocation_status == 'cancel') onclick="event.preventDefault();" disabled="disabled" oncontextmenu="return false;" @else @endif>ADD
RANGE
CONTRACTS
|
@else
complete_status == 'yes' || $allocation_letter->allocation_status == 'cancel') onclick="event.preventDefault();" disabled="disabled" oncontextmenu="return false;" @else @endif>ADD
RANGE
CONTRACTS
|
@endif
@if ($allocation_letter->allocation_status == 'new')
allocation_tonnages->count() == 0) onclick="event.preventDefault();" disabled='disabled' oncontextmenu="return false;" @endif>LETTER
|
@elseif($allocation_letter->allocation_status == 'revise')
allocation_tonnages->count() == 0) onclick="event.preventDefault();" disabled='disabled' oncontextmenu="return false;" @endif>REVISED
LETTER
|
@else
CANCELLED
LETTER
|
@endif
@endforeach