@extends('layouts.app') @section('content') @php $activeTab = request('tab') === 'security' ? 'security' : 'profile'; $securityAbilities = [ 'partner_users.reset_2fa', 'partner_users.revoke_trusted_devices', 'partner_users.revoke_sessions', 'partner_users.unlock_account', ]; $hasSecurityTab = $user->partner_id !== null && auth()->user()?->canany($securityAbilities, $user); @endphp
@if($hasSecurityTab)
@endif
@if($hasSecurityTab)
@endif
Modifier un commerçant
@include('components.alert_success') @include('components.alert_error')
{{ csrf_field() }} {{ method_field('PUT') }}
@if ($errors->has('subname'))
{{ $errors->first('subname') }}
@endif
@if ($errors->has('firstname'))
{{ $errors->first('firstname') }}
@endif
@if ($errors->has('lastname'))
{{ $errors->first('lastname') }}
@endif
@if ($errors->has('phone'))
{{ $errors->first('phone') }}
@endif
@if ($errors->has('address'))
{{ $errors->first('address') }}
@endif
@if ($errors->has('postcode'))
{{ $errors->first('postcode') }}
@endif
@if ($errors->has('city'))
{{ $errors->first('city') }}
@endif
@if ($errors->has('company'))
{{ $errors->first('company') }}
@endif
{{ $errors->first('business_type_id') }}
{{ $errors->first('manager_id') }}
@if(Auth::user()->hasRole('admin')) @if(!$partner->has_euro_credit)
@if ($errors->has('sms_prosp'))
{{ $errors->first('sms_prosp') }}
@endif
@if ($errors->has('sms_fid'))
{{ $errors->first('sms_fid') }}
@endif
@else
@if ($errors->has('credits'))
{{ $errors->first('credits') }}
@endif
@endif @endif
location_whitelist_type === 'postcode') ? 'checked' : '' }}>
location_whitelist_type === 'insee') ? 'checked' : '' }}>
location_whitelist_type === 'iris') ? 'checked' : '' }}>
@if($partner->has_user_validation)
is_validated ?? '') ? 'checked' : '' }}>
@endif @if(Auth::user()->hasRole('admin'))
is_extranet ?? '') ? 'checked' : '' }}>
@endif
@if($hasSecurityTab)
{{-- /tab-pane profile-content --}}
@include('pages.partner._security_card', [ 'partner' => $partner, 'subject' => $user, 'subjectKey' => 'user', 'abilityPrefix' => 'partner_users', 'modalsPartial' => 'pages.partner.user._security_modals', 'activeTrustedDevicesCount' => $activeTrustedDevicesCount, 'activeSessionsCount' => $activeSessionsCount, 'sessionDriver' => $sessionDriver, 'wrapInCard' => false, ])
{{-- /tab-pane security-content --}}
{{-- /tab-content --}} @endif
{{-- /card-body --}}
{{-- /card --}}
{{-- /col-lg-7 --}}
{{-- /row py-5 --}} @endsection