@extends('layouts.admin.master') @section('content') @php $can_qrcode_print = auth_can(h_prefix('qrcode_print')); $can_insert = auth_can(h_prefix('insert')); $can_update = auth_can(h_prefix('update')); $can_rumah = auth_can(h_prefix('rumah')); $can_delete = auth_can(h_prefix('delete')); $can_master = auth_can('admin.penduduk.master'); $can_family = auth_can('admin.penduduk.keluarga'); $can_save_another = auth_can('admin.profile.save_another'); $can_excel = auth_can(h_prefix('excel')); $show_actions = $can_master || $can_delete || $can_update || $can_rumah || $can_save_another || $can_qrcode_print; $is_admin = auth() ->user() ->hasRole(config('app.super_admin_role')); @endphp
Data {{ $page_attr['title'] }}
@if ($can_family) Data Keluarga @endif @if ($can_excel) @endif @if ($can_insert) @endif


@if ($is_admin)

@endif

{!! $is_admin ? '' : '' !!} {!! $show_actions ? '' : '' !!}
No Foto NamaKontakAlamat DomisiliAksi
@endsection @section('stylesheet') @endsection @section('javascript') @php $resource = resource_loader( blade_path: $view, params: [ 'can_qrcode_print' => $can_qrcode_print ? 'true' : 'false', 'can_master' => $can_master ? 'true' : 'false', 'can_update' => $can_update ? 'true' : 'false', 'can_rumah' => $can_rumah ? 'true' : 'false', 'can_delete' => $can_delete ? 'true' : 'false', 'can_save_another' => $can_save_another ? 'true' : 'false', 'is_admin' => $is_admin ? 'true' : 'false', 'page_title' => $page_attr['title'], ], ); @endphp @endsection