@extends('admin.layouts.contentLayoutMaster') @section('title','帳號資料') @section('vendor-styles') @endsection @section('page-styles') @endsection @section('content')
@csrf

@if ($errors->has('role_id')) @include('admin.panels.input-invalid-messages', [ 'messages' => $errors->get('role_id') ]) @endif
@if ($errors->has('name')) @include('admin.panels.input-invalid-messages', [ 'messages' => $errors->get('name') ]) @endif
@if ($errors->has('account')) @include('admin.panels.input-invalid-messages', [ 'messages' => $errors->get('account') ]) @endif
@if ($errors->has('password')) @include('admin.panels.input-invalid-messages', [ 'messages' => $errors->get('password') ]) @endif
@if ($errors->has('password_confirmation')) @include('admin.panels.input-invalid-messages', [ 'messages' => $errors->get('password_confirmation') ]) @endif
@if ($errors->has('email')) @include('admin.panels.input-invalid-messages', [ 'messages' => $errors->get('email') ]) @endif
@if ($errors->has('firm_service_id')) @include('admin.panels.input-invalid-messages', [ 'messages' => $errors->get('firm_service_id') ]) @endif
@if (!empty($permissions_array)) @foreach ($permissions_array as $main_name => $main) @if (!empty($main)) @foreach ($main as $sub_name => $info) @php if (!isset($row)) { $row = 1; } else { $row++; } @endphp {{-- 檢視 --}} @php $i = 0; @endphp @if(!empty($info[$i]) && $info[$i]['method'] == '檢視') @else @endif {{-- 編輯 --}} @php $i = 1; @endphp @if(!empty($info[$i]) && $info[$i]['method'] == '編輯') @else @endif {{-- 刪除 --}} @php $i = 2; @endphp @if(!empty($info[$i]) && $info[$i]['method'] == '刪除') @else @endif @endforeach @endif @endforeach @endif
權限表 全選 檢視 編輯 刪除
{{ $main_name }}
{{ $sub_name }} {{-- 全選 --}}
@endsection @section('vendor-scripts') @endsection @section('page-scripts') @endsection