@extends('layouts.app', ['class' => 'g-sidenav-show bg-gray-100']) {{-- section content --}} @section('content') @include('layouts.navbars.auth.topnav', ['title' => ''])
| {{-- Action Column First --}} | Action | No | {{-- Vendor Information --}}Corporation | Vendor Name | Address 1 | Address 2 | Address 3 | City | {{-- Contact Persons --}}Contact Persons | {{-- Status & Approver --}}Status | Approver | @elseNo | {{-- For other menus, use default header --}} @foreach ($table_header as $header){{ $header->alias }} | @endforeach @endif||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{-- Action Dropdown Column First --}} |
@endif
{{-- button reject for proposed status --}}
@if($detail->status == 'Proposed' && $detail->isactive == '1')
@endif
{{-- check authorize delete and data primary key not "msjit" --}}
@if ($authorize->delete == '1' && $primary != 'msjit')
@endif
|
{{ $table_detail->firstItem() + $loop->index }} | {{-- Vendor Information --}}
{{ $detail->corp }}
@if($detail->corp == 'Lainnya' && $detail->other_corporation)
({{ $detail->other_corporation }}) @endif |
{{ $detail->name }} | {{ $detail->office_address1 ?? '-' }} | {{ $detail->office_address2 ?? '-' }} | {{ $detail->office_address3 ?? '-' }} | {{ $detail->city_name ?? '-' }} | {{-- Contact Persons --}}
@if($contacts->count() > 0)
|
{{-- Status --}}
@if($detail->status == 'Pending') Pending @elseif($detail->status == 'Proposed') Proposed @elseif($detail->status == 'Approved') Approved @elseif($detail->status == 'Rejected') Rejected @elseif($detail->status == 'Finish') Finish @endif | {{-- Approver --}}{{ $approver->firstname ?? '-' }} | @else{{ $table_detail->firstItem() + $loop->index }} | {{-- For other menus, use default foreach --}} @foreach ($table_header as $field) @php $string = $field->field; @endphp {{-- Keep existing logic for other menus --}} @if ($field->type == 'enum'){{-- Existing enum logic --}} | @elseif ($field->type == 'file'){{-- Existing file logic --}} | @else{{ $detail->$string }} | @endif @endforeach @endif