@extends("agentportal.layouts.layout") @if(isset($details)) @section("title", trans("message_lang.LBL_EDIT_LOCATION")) @else @section("title", trans("message_lang.LBL_ADD_LOCATION")) @endif @section("page_style") @endsection @section("content")

{{ $parent ? $parent->name . ' : ' : '' }} @if(isset($details)) {!! trans("message_lang.LBL_EDIT_LOCATION") !!} @else {!! trans("message_lang.LBL_ADD_LOCATION") !!} @endif

@php $url = 'agentportal/locations/'; if ($parent) { $url .= 'show/' . $parent->id; } @endphp {{ trans('message_lang.BTN_BACK') }}
id)) action="{{ url('agentportal/locations/update/' . $details->id) }}" @else action="{{ url('agentportal/locations/store') }}" @endif enctype="multipart/form-data" autocomplete="off"> @csrf
@error('name') {{ $message }} @enderror
@error('address') {{ $message }} @enderror
@error('city') {{ $message }} @enderror
@error('state') {{ $message }} @enderror
@error('zip') {{ $message }} @enderror
@error('country_id') {{ $message }} @enderror
@error('phone') {{ $message }} @enderror
@error('email') {{ $message }} @enderror
@error('ria_location_code') {{ $message }} @enderror
{{ trans('message_lang.JPG_PNG_MAX_FILE_SIZE') }} @error('logo') {{ $message }} @enderror
logo != '') src="{{ url($details->logo) }}" @else src="{{ url('public/uploads/default/100_no_img.jpg') }}" @endif id="logoImg" class="img-fluid w-100 m-auto d-block" alt="{{ @$details->name }}" />
{{--
// already included as a provider --}}
@if (!$parent) @endif @if (isset($details)) @endif @if (isset($details) && $details->agentCountry->isoname == config('constants.SL_COUNTRY_CODE')) @endif
@hasanyrole('administrator') @error('max_credit_limit') {{ $message }} @enderror {{ number_format(old('max_credit_limit', @$details->max_credit_limit ?? 0.00), 2) }} @if (@$details->max_credit_updated_by != null) {{ trans('message_lang.LBL_UPDATED_BY') .': ' . @$details->maxCreditUpdater->first_name .' ' .@$details->maxCreditUpdater->last_name }} @endif {{ trans('message_lang.LBL_COUNTRY_MAX_CREDIT_LIMIT') .': ' .number_format(@$details->agentCountry->max_credit_limit ?? 0.00, 2) }} @else
{{ number_format(@$details->max_credit_limit ?? 0.00, 2) }}
{{ trans('message_lang.LBL_COUNTRY_MAX_CREDIT_LIMIT') .': ' .number_format(@$details->agentCountry->max_credit_limit ?? 0.00, 2) }}
@endhasanyrole
@error('agent_id') {{ $message }} @enderror @error('sequence') {{ $message }} @enderror @error('token') {{ $message }} @enderror
@endsection @section("page_vendors") @endsection @section("page_script") @endsection