@extends('layouts.dashboard') @section('title', 'Data RW | Monitoring Kelurahan') @section('dashboard_content')
@if(Auth::user()->role == 'Admin' || Auth::user()->role == 'Camat' || Auth::user()->role == 'Lurah') @endif @if($rw->count() == null)
Belum Ada Data RW
@elseif($rw->count() != null)
@csrf
@endif @if(session('status_rw'))
{{session('status_rw')}}
@elseif(session('status_rw_avail'))
{{session('status_rw_avail')}}
@endif
@foreach($rw as $data)
@if(Auth::user()->role == 'Admin') @elseif(Auth::user()->role == 'Camat') @elseif(Auth::user()->role == 'Lurah') @endif

{{$data->lurah->lurah_nama}}, RW {{$data->rw_nomor}}

Ketua RW:

{{$data->user->name}}

{{$data->rw_username}}

@if(Auth::user()->role == 'Admin')
@elseif(Auth::user()->role == 'Camat')
@elseif(Auth::user()->role == 'Lurah')
@endif
@endforeach
{{ $rw->links() }}
@endsection @section('jsExternalAdd') @include('layouts/searchAjax') @endsection