@include('layouts.header')
@include('layouts.sidebar')

Quotation

@if (session('success')) @endif @if (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 --}} @if (in_array('Change Invoice', $choosePermission) || auth()->user()->is_admin == '1') @endif @php $no = '1'; @endphp @foreach ($quotations as $quotation) @if (in_array('Change Invoice', $choosePermission) || auth()->user()->is_admin == '1') @endif @php $no++; @endphp @endforeach
No. Quotation No. Customer Name Quotation Date TotalToolsAction
{{ $no }} {{ $quotation->quote_no }} {{ $quotation->customer_name }} {{ $quotation->quote_date }} {{ number_format($quotation->total ?? 0, 2) }} Change Invoice @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
{{-- --}}