Quotation
@if (session('success'))
{{ session('success') }}
@endif
@if (session('delete'))
{{ session('delete') }}
@endif
Quotaton List
{{-- Permission Php --}}
@php
$choosePermission = [];
if (auth()->user()->permission) {
$decodedPermissions = json_decode(auth()->user()->permission, true);
if (json_last_error() === JSON_ERROR_NONE) {
$choosePermission = $decodedPermissions;
}
}
@endphp
{{-- End Php --}}
| No. | Quotation No. | Customer Name | Quotation Date | Total | @if (in_array('Change Invoice', $choosePermission) || auth()->user()->is_admin == '1')Tools | @endifAction |
|---|---|---|---|---|---|---|
| {{ $no }} | {{ $quotation->quote_no }} | {{ $quotation->customer_name }} | {{ $quotation->quote_date }} | {{ number_format($quotation->total ?? 0, 2) }} | @if (in_array('Change Invoice', $choosePermission) || auth()->user()->is_admin == '1')Change Invoice | @endif@if (in_array('Quotation Details', $choosePermission) || auth()->user()->is_admin == '1') @endif @if (in_array('Quotation Edit', $choosePermission) || auth()->user()->is_admin == '1') @endif @if (in_array('Quotation Delete', $choosePermission) || auth()->user()->is_admin == '1') @endif |