@version(2) @load('css/shop.css') @php $shp_mk_status = $my_seller ? (string)$my_seller->status : ''; $shp_mk_form = $apply_open && $is_member && empty($apply_is_staff) && !empty($apply_fields) && ($shp_mk_status === '' || $shp_mk_status === 'rejected'); $shp_mk_rate = rtrim(rtrim(number_format((float)$apply_rate, 2, '.', ''), '0'), '.'); $shp_mk_status_label = $shp_mk_status !== '' ? lang('commerce.mk_st_' . $shp_mk_status) : ''; @endphp

{{ $lang->mk_apply_title }}

{{ sprintf($lang->mk_apply_desc, $shp_mk_rate) }}

@if ($my_seller)
{{ $lang->mk_f_shop_name }}{{ $my_seller->shop_name }}
{{ $lang->mk_apply_status }}{{ $shp_mk_status_label }}
{{ $lang->mk_applied_at }}{{ $my_seller->regdate_text }}
@if ($shp_mk_status === 'rejected' && trim((string)$my_seller->reject_reason) !== '')
{{ $lang->mk_reject_reason }}{{ $my_seller->reject_reason }}
@endif
@if ($shp_mk_status === 'pending')

{{ $lang->mk_apply_pending }}

@endif @if ($shp_mk_status === 'suspended')

{{ $lang->mk_apply_suspended }}

@endif @if ($shp_mk_status === 'approved')

{{ $lang->mk_apply_approved }}

{{ $lang->mk_go_console }}

@endif @if ($shp_mk_status === 'rejected')

{{ $lang->mk_apply_again }}

@endif @endif @if (!empty($apply_is_staff))

{{ $lang->ss_msg_staff_cannot_apply }}

@elseif (!$is_member)

{{ $lang->mk_apply_login }}

@elseif (!$apply_open && !$my_seller)

{{ $lang->mk_apply_closed }}

@endif @if ($shp_mk_form)
@foreach ($apply_fields as $shp_af_sec => $shp_af_list)
{{ $shp_af_sec === 'bank' ? $lang->mk_f_bank : ($shp_af_sec === 'intro' ? $lang->mk_f_intro : $lang->mk_profile_biz) }}
@foreach ($shp_af_list as $shp_af)
@if ($shp_af->type !== 'textarea' || $shp_af_sec !== 'intro')@endif @if ($shp_af->type === 'textarea') @elseif ($shp_af->type === 'select') @elseif ($shp_af->type === 'file') required && $shp_af->value === '') required @endif /> @if ($shp_af->value !== ''){{ $lang->af_file_kept }}@endif @else key === 'shop_id') minlength="3" autocapitalize="off" @endif @if ($shp_af->type === 'number') inputmode="decimal" @endif @if ($shp_af->required) required @endif /> @endif @if ($shp_af->help !== ''){{ $shp_af->help }}@endif
@endforeach
@endforeach
@endif