@extends('layouts.superadmin') @section('content')

Dashboard

Edit Branch Master
@csrf @method('put')
@if ($errors->has('company_id'))
{{ $errors->first('company_id') }}
@endif
@if ($errors->has('name'))
{{ $errors->first('name') }}
@endif
type == 'test' ? 'checked' : '' }}> @if ($errors->has('type'))
{{ $errors->first('type') }}
@endif
@if ($errors->has('software'))
{{ $errors->first('software') }}
@endif
@if ($errors->has('issue_date'))
{{ $errors->first('issue_date') }}
@endif
@if ($errors->has('expiry_date'))
{{ $errors->first('expiry_date') }}
@endif
{{-- @if ($errors->has('leniency'))
{{ $errors->first('leniency') }}
@endif --}}
verification == 1 ? 'checked' : '' }}>
@forelse ($permissions->where('type','Master') as $permission)
id, $branch->permissions->pluck('permission_id')->toArray()) ? 'checked' : '' }} form="insert_form" class="custom-control-input master" id="customSwitch{{ $permission->id }}" @if ($permission->enabled) checked @endif>
@empty @endforelse
@forelse ($permissions->where('type','Report') as $permission)
id, $branch->permissions->pluck('permission_id')->toArray()) ? 'checked' : '' }} form="insert_form" class="custom-control-input reports" id="customSwitch{{ $permission->id }}" @if ($permission->enabled) checked @endif>
@empty @endforelse
@forelse ($permissions->where('type','Transactions') as $permission)
id, $branch->permissions->pluck('permission_id')->toArray()) ? 'checked' : '' }} form="insert_form" class="custom-control-input transactions" id="customSwitch{{ $permission->id }}" @if ($permission->enabled) checked @endif>
@empty @endforelse
@forelse ($permissions->where('type','Others') as $permission)
id, $branch->permissions->pluck('permission_id')->toArray()) ? 'checked' : '' }} form="insert_form" class="custom-control-input others" id="customSwitch{{ $permission->id }}" @if ($permission->enabled) checked @endif>
@empty @endforelse
@forelse ($permissions->where('type','period-closing') as $permission)
id, $branch->permissions->pluck('permission_id')->toArray()) ? 'checked' : '' }} form="insert_form" class="custom-control-input period-closing" id="customSwitch{{ $permission->id }}" @if ($permission->enabled) checked @endif>
@empty @endforelse
@endsection