ultimatepos/Modules/Tms/Resources/views/integrations/customs_transaction_actions.blade.php

25 lines
1.3 KiB
PHP

@if($clearance)
<a href="{{ action([\Modules\Tms\Http\Controllers\CustomsClearanceController::class, 'show'], [$clearance->id]) }}"
class="tw-dw-btn tw-dw-btn-warning tw-text-white no-print" target="_blank">
<i class="fas fa-passport"></i> @lang('tms::lang.view_customs') ({{ $clearance->ref_no }})
</a>
@elseif(auth()->user()->can('tms.customs.create'))
<button type="button"
class="tw-dw-btn tw-dw-btn-warning tw-text-white no-print tms-create-customs-btn"
data-transaction-id="{{ $transaction->id }}">
<i class="fas fa-plus"></i> @lang('tms::lang.create_customs_from_transaction')
</button>
@endif
@if(!empty($shipment))
<a href="{{ action([\Modules\Tms\Http\Controllers\ShipmentController::class, 'show'], [$shipment->id]) }}"
class="tw-dw-btn tw-dw-btn-info tw-text-white no-print" target="_blank">
<i class="fas fa-truck"></i> @lang('tms::lang.view_shipment') ({{ $shipment->ref_no }})
</a>
@elseif($transaction->type === 'purchase' && auth()->user()->can('tms.shipments.create'))
<button type="button"
class="tw-dw-btn tw-dw-btn-primary tw-text-white no-print tms-create-shipment-btn"
data-transaction-id="{{ $transaction->id }}">
<i class="fas fa-truck"></i> @lang('tms::lang.create_shipment_from_purchase')
</button>
@endif