{{ $isRequest ? __('Store Joining Request') : __('Active Store') }}
{{ session('success') }}
@endif
@if ($errors->any())
-
@foreach ($errors->all() as $error)
- {{ $error }} @endforeach
{{ __('Store Information') }}
- {{ __('ID') }}
- {{ $store->id }}
- {{ __('Prepare Duration') }}
- {{ $store->prepare_duration ?? '-' }}
- {{ __('Wallet Settings') }}
- {{ __('Debit on Payed Shipment') }}
- {{ $store->debit_on_payed_shipment ?? 0 }}
- {{ __('Debit on COD Shipment') }}
- {{ $store->debit_on_cod_shipment ?? 0 }}
- {{ __('Debit COD Return Shipment') }}
- {{ $store->debit_cod_return_shipment ?? 0 }}
{{ __('User Information') }}
- {{ __('Name') }}
- {{ $store->user?->name ?? '-' }}
- {{ __('Phone') }}
- {{ $store->user?->phone ?? '-' }}
- {{ __('Address') }}
-
@php $u = $store->user; @endphp
{{ $u?->address_details ?? '-' }}
{{ $u?->latitude ? __('Lat:') . ' ' . $u->latitude : '' }} {{ $u?->longitude ? ' | ' . __('Lng:') . ' ' . $u->longitude : '' }} - {{ __('Rating') }}
- @php $rating = (int)($store->user?->rating ?? 0); @endphp @for ($i = 1; $i <= 5; $i++) @endfor ({{ $rating }}/5)
- {{ __('Verified') }}
- {{ $store->user?->verified ? __('Yes') : __('No') }}
- {{ __('Status') }}
- @php $status = $store->user?->status; // $map = [ // \App\UserStatusEnum::PENDING->value => ['Pending', 'warning'], // \App\UserStatusEnum::ACTIVE->value => ['Active', 'success'], // \App\UserStatusEnum::UNACTIVE->value => ['Rejected', 'secondary'], // ]; // [$label, $color] = $map[$status] ?? ['Unknown', 'secondary']; @endphp {{ __($status->label()) }}
{{ __('Team Information') }}
- {{ __('Delivery Team') }}
- {{ $store->deliveryTeam?->name ?? __('No Team Assigned') }}
{{ __('Edit Store Profile') }}
{{ __('Uploaded Documents') }}
{{-- Commercial Register --}}
{{-- VAT Number --}}
{{-- Profile Image --}}
{{ __('Commercial Register') }}
@php
$commercialRegisterUrl = $store->getFirstMediaUrl(
'commercial_register',
);
@endphp
@if ($commercialRegisterUrl)
@if (Str::endsWith($commercialRegisterUrl, ['.jpg', '.jpeg', '.png', '.gif', '.webp']))
@else
@endif
@else
{{ __('No file uploaded') }}
@endif
{{ __('VAT Number') }}
@php
$vatNumberUrl = $store->getFirstMediaUrl('vat_number');
@endphp
@if ($vatNumberUrl)
@if (Str::endsWith($vatNumberUrl, ['.jpg', '.jpeg', '.png', '.gif', '.webp']))
@else
@endif
@else
{{ __('No file uploaded') }}
@endif
{{ __('Profile Image') }}
@php
$profileUrl = $store->user?->getFirstMediaUrl('profile');
@endphp
@if ($profileUrl)
@else
{{ __('No image uploaded') }}
@endif