@extends('admin.layouts.contentLayoutMaster') @section('title','帳號分類') @section('vendor-styles') @endsection @section('page-styles') @endsection @section('content') @csrf @method('PATCH') 名稱 @if ($errors->has('name')) @include('admin.panels.input-invalid-messages', [ 'messages' => $errors->get('name') ]) @endif 啟用 status) ? 'checked' : '' }}> 利潤 @if ($errors->has('bonus_percent')) @include('admin.panels.input-invalid-messages', [ 'messages' => $errors->get('bonus_percent') ]) @endif 權限表 全選 檢視 編輯 刪除 @if (!empty($permissions_array)) @foreach ($permissions_array as $main_name => $main) {{ $main_name }} @if (!empty($main)) @foreach ($main as $sub_name => $info) @php if (!isset($row)) { $row = 1; } else { $row++; } @endphp {{ $sub_name }} {{-- 全選 --}} {{-- 檢視 --}} @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 @endsection @section('vendor-scripts') @endsection @section('page-scripts') @endsection