@extends('layouts.admin') @section('content')

Profile Information

SPO Name

{{ ucfirst($vendor->title) }}. {{ $vendor->first_name }} {{ $vendor->last_name }}

SPO ID

#{{$vendor->id}}

Address

Street, House Number

{{ $vendor->street ?? 'N/A' }}

Zip Code

{{ $vendor->zip_code ?? 'N/A' }}

City

{{ $vendor->city ?? 'N/A' }}

Country

{{ $vendor->country ?? 'Deutschland' }}

SPO Details

Email Address

{{ $vendor->email ?? 'N/A' }}

Phone Number

{{ ($vendor->country_code ?? '') . ' ' . ($vendor->number ?? 'N/A') }}

Business Information

New In Business

{{ $vendor->new_in_business ? 'Yes' : 'No' }}

Business Type

{{ $vendor->business_type ? __('messages.' . $vendor->business_type) : 'N/A' }}

Business Model

{{ $vendor->business_model ? __('messages.' . $vendor->business_model) : 'N/A' }}

Contact Type

{{ $vendor->contact_person ? __('messages.' . $vendor->contact_person) : 'N/A' }}

Size of Location

{{ $vendor->size_of_location ? __('messages.' . $vendor->size_of_location) : 'N/A' }}

Status

{{ ucfirst($vendor->status) }}

Conditions:

@if(!empty($vendor->commission_rate) && is_array($vendor->commission_rate)) @foreach($vendor->commission_rate as $range => $data) @php $parts = explode('-', $range); $from = $parts[0]; $to = $parts[1] ?? 'Above'; $commission = $data['commission'] ?? ''; $shop_fee = $data['shop_fee'] ?? ''; @endphp @endforeach @endif
Sales Tier Commission % Shop Fee
{{ number_format($from, 2, ',', '.') }}€ - {{ number_format($to, 2, ',', '.') }}€ {{ $commission }}% {{ number_format($shop_fee, 2, ',', '.') }}€

Bank Details

Bank Name

{{ $vendor->bank_name ?? 'N/A' }}

Bank Account Number

{{ $vendor->account_number ?? 'N/A' }}

IBAN Number

{{ $vendor->iban_number ?? 'N/A' }}

Bank Account Owner

{{ $vendor->account_owner ?? 'N/A' }}

BIC Number

{{ $vendor->bic_number ?? 'N/A' }}

Tax Related Information

Tax Number

{{ $vendor->tax_number ?? 'N/A' }}

Tax ID (UMSt.-ID)

{{ $vendor->tax_id ?? 'N/A' }}

Working Hours

@php $days = [ 'mo' => 'Monday', 'di' => 'Tuesday', 'mi' => 'Wednesday', 'do' => 'Thursday', 'fr' => 'Friday', 'sa' => 'Saturday', 'so' => 'Sunday' ]; @endphp @foreach($vendor->workingHours as $workingHour) @endforeach
Day Opening Time Closing Time Status
{{ $days[$workingHour->day] }} {{ $workingHour->is_closed ? '-' : ($workingHour->open_time ? \Carbon\Carbon::parse($workingHour->open_time)->format('H:i') : '-') }} {{ $workingHour->is_closed ? '-' : ($workingHour->close_time ? \Carbon\Carbon::parse($workingHour->close_time)->format('H:i') : '-') }} @if($workingHour->is_closed) Closed @else Open @endif

Holidays/Absent Days

@if($vendor->holidays->count() > 0)
@foreach($vendor->holidays as $holiday)
{{ $holiday->name }} ({{ \Carbon\Carbon::parse($holiday->date)->format('d.m.Y') }})
@php $today = \Carbon\Carbon::today(); $holidayDate = \Carbon\Carbon::parse($holiday->date); $daysLeft = $today->diffInDays($holidayDate, false); @endphp @if($daysLeft > 0) in {{ $daysLeft }} days @elseif($daysLeft === 0) Today @else {{ abs($daysLeft) }} days ago @endif
@endforeach
@else

No holidays/absent days scheduled.

@endif
@endsection