@extends("agentportal.layouts.layout") @if(isset($details)) @section("title", trans("message_lang.LBL_EDIT_LOCATION_USER")) @else @section("title", trans("message_lang.LBL_ADD_LOCATION_USER")) @endif @section("page_style")
@endsection @section("content")
{{ $agentLocation ? $agentLocation->name . ' : ' : '' }} @if(isset($details) && isset($details->id)) {!! trans("message_lang.LBL_EDIT_LOCATION_USER") !!} @else {!! trans("message_lang.LBL_ADD_LOCATION_USER") !!} @endif
@php $url = 'agentportal/locations/'; if ($parent) { $url .= $parent->id . '/'; } $url .= 'show/' . $agentLocation->id; @endphp @if(isset($details) && isset($details->id))
{{ trans('message_lang.BTN_RESET_PASSWORD') }}
@endif
{{ trans('message_lang.BTN_BACK') }}
id)) action="{{ url('agentportal/locations/' . $agentLocation->id . '/users/update/' . $details->id) }}" @else action="{{ url('agentportal/locations/' . $agentLocation->id . '/users/store') }}" @endif enctype="multipart/form-data" autocomplete="off"> @csrf
{!! trans("message_lang.LBL_FIRST_NAME") !!}
*
@error('first_name')
{{ $message }}
@enderror
{!! trans("message_lang.LBL_LAST_NAME") !!}
@error('last_name')
{{ $message }}
@enderror
{!! trans("message_lang.LBL_PHONE") !!}
*
@error('phone')
{{ $message }}
@enderror
{!! trans("message_lang.LBL_EMAIL") !!}
*
@error('email')
{{ $message }}
@enderror
{!! trans("message_lang.LBL_ROLE") !!}
*
@foreach($roles as $key => $role)
role) == $role) selected @endif>{{ ucwords($role) }}
@endforeach
@error('role')
{{ $message }}
@enderror
{!! trans("message_lang.LBL_USERNAME") !!}
*
@error('username')
{{ $message }}
@enderror
@if(isset($agentLocation->sending_enabled) && $agentLocation->sending_enabled == "1")
{!! trans("message_lang.LBL_ENABLE_SENDING") !!}
sending_enabled) == '1') checked @endif>
@endif
{!! trans("message_lang.LBL_ENABLE_COMMISSION") !!}
enable_commission) == '1') checked @endif>
{{ trans('message_lang.LBL_ENABLE_REPAYMENT') }}
repayment_enabled) == '1') checked @endif @endif>
{{ trans('message_lang.LBL_API_USER') }}
api_partner) == '1') checked @endif>
@endsection @section("page_vendors") @endsection