@extends('layouts.master') @push('styles') @endpush @section('content')
| No | Nama Pemohon | Alamat | No. Telp | Status | Aksi | 
|---|---|---|---|---|---|
| {{ ($data->currentPage() - 1) * $data->perPage() + $key + 1 }} | {{ $user->nama_pemohon }} | {{ $user->alamat }} | {{ $user->no_telp }} | {{ $user->status->status }} | 
                                                 
                                                    @if(auth()->user()->role == 1)
                                                    
                                                    @endif
                                                    @if(auth()->user()->to_role->l_pengurugan == 1)
                                                        
                                                            
                                                        
                                                    @endif
                                                    @if (in_array(auth()->user()->role, [1, 5, 6, 10, 13]))
                                                        @if (in_array($user->id_status, [5, 6, 7]))
                                                            
                                                                
                                                            
                                                        @endif
                                                    @endif
                                                    @if(auth()->user()->to_role->e_pengurugan == 1)
                                                        @if (auth()->user()->to_role->id == 2){{-- Jika Pemohon --}}
                                                            @if (in_array($user->id_status, [1, 2, 3, 4, 10]))
                                                                
                                                                    
                                                                    @if($dokumenBelumUpload > 0)
                                                                        {{ $dokumenBelumUpload }}
                                                                    @endif
                                                                
                                                                
                                                                    
                                                                
                                                            @elseif($user->id_status == 8) {{-- Jika Status Terbit --}}
                                                            @else
                                                                Menunggu 
                                                            @endif
                                                        @else
                                                            
                                                                
                                                            
                                                        @endif
                                                    @endif
                                                    @if(auth()->user()->to_role->c_pengurugan == 1 && ($user->id_status == 7 || $user->id_status == 8 || $user->id_status == 10))
                                                        @if($user->id_status == 10)
                                                            
                                                                
                                                            
                                                        @elseif($user->id_status == 8)
                                                            
                                                                
                                                            
                                                        @endif
                                                    @endif
                                                    @if (auth()->user()->role == 5)
                                                        @if (auth()->user()->to_role->p_kabbid_data == 1 && $user->id_status == 5)
                                                            @if ($user->krk_ditandatangani)
                                                                
                                                                    
                                                                
                                                                
                                                                    
                                                                
                                                            @else
                                                                
                                                                    
                                                                
                                                            @endif
                                                        @endif
                                                    @endif
                                                    @if (auth()->user()->role == 6)
                                                        @if (auth()->user()->to_role->p_sd_data == 1 && $user->id_status == 6)
                                                            
                                                                
                                                            
                                                            
                                                                
                                                            
                                                        @endif
                                                    @endif
                                                    @if (auth()->user()->role == 10)
                                                        @if (auth()->user()->to_role->p_kadin_data == 1 && $user->id_status == 7)
                                                            
                                                                
                                                            
                                                        @endif
                                                    @endif
                                                    @if(auth()->user()->to_role->h_pengurugan == 1)
                                                        
                                                    @endif
                                                 
                                             | 
                                        
| Tidak ada data | |||||