Raffales-LMS/resources/views/general/table-actions.blade.php

49 lines
2.3 KiB
PHP
Raw Normal View History

2024-04-16 09:58:24 +00:00
<ul class="d-flex flex-wrap ">
@if(!empty($editRoute))
<li>
<a class="btn btn-color-primary btn-hover-primary btn-icon btn-soft btn-editCanvas" name="" href="{{$editRoute}}"> <em class="icon ni ni-edit"></em></a>
</li>
@endif
@if(!empty($printRoute))
<a href="{{$printRoute}}" target="_blank"><button type="button" class="btn btn-icon-toggle btn-sm" data-toggle="tooltip" data-placement="top" data-original-title="Print"><i class="mdi mdi-printer"></i></button></a>
@endif
@if(!empty($viewRoute))
<a href="{{$viewRoute}}" target="__blank"><button type="button" class="btn btn-icon-toggle btn-sm" data-toggle="tooltip" data-placement="top" data-original-title="View"><i class="far fa-eye"></i></button></a>
@endif
@if(!empty($resumeRoute))
<a href="{{$resumeRoute}}"><button type="button" class="btn btn-icon-toggle btn-sm" data-toggle="tooltip" data-placement="top" data-original-title="View Resume"><i class="fa fa-file"></i></button></a>
@endif
@if(!empty($showRoute))
<a href="{{$showRoute}}" ><button type="button" class="btn btn-icon-toggle" data-toggle="tooltip" data-placement="top" data-original-title="Show"><i class="far fa-eye"></i></button></a>
@endif
@if(!empty($deleteRoute))
<li>
<a href="#">
<button type="button" data-route="{{$deleteRoute}}" class="btn btn-color-danger btn-hover-danger btn-delete p-1 btn-icon btn-soft" data-toggle="tooltip" id="sa-warning" data-placement="top" data-original-title="Delete"><em class="icon ni ni-trash"></em></button>
</a>
</li>
@endif
@if(!empty($checklist))
<button type="button" class="btn btn-primary btn-approve btn-sm mb-1" onclick="approvedthis({{$checklist}})" value="1">Add Check Out</button>
@endif
@if(!empty($billRoute))
<a href="{{$billRoute}}" ><button type="button" class="btn btn-warning btn-reject btn-sm" data-toggle="tooltip" data-placement="top" data-original-title="Generate Bill">Add Bill</button></a>
@endif
@if(!empty($invoiceRoute))
<a href="{{$invoiceRoute}}" ><button type="button" class="btn btn-danger btn-reject btn-sm" data-toggle="tooltip" data-placement="top" data-original-title="Generate Bill">Generate Invoice</button></a>
@endif
</ul>