@extends('backend.layout') @section('backend_content') @php $associatedStaff = $shop->users; if ($shop->creator && !$associatedStaff->contains('id', $shop->creator->id)) { $associatedStaff = $associatedStaff->push($shop->creator); } @endphp
{{-- ══ Header ══ --}}

{{ $shop->name }}

Shop Details
{{-- Shop Info --}}
Shop Information
Name

{{ $shop->name }}

Brand Color
{{ $shop->brand_color }}
@if ($shop->logo)
Logo
{{ $shop->name }} @endif
{{-- Contact Info --}}
Contact Information
Phone

{{ $shop->contact['phone'] ?? 'Not provided' }}

Email

{{ $shop->contact['email'] ?? 'Not provided' }}

Address

{{ $shop->contact['address'] ?? 'Not provided' }}

{{-- Associated Users --}}
Associated Staff ({{ $associatedStaff->count() }})
@forelse($associatedStaff as $user)
{{ strtoupper(substr($user->name, 0, 2)) }}
{{ $user->name }} @if ($shop->creator && $user->id === $shop->creator->id) Owner @endif
{{ $user->email }}
@empty

No staff associated with this shop.

@endforelse
{{-- Creator Info --}}
Created By
{{ strtoupper(substr($shop->creator->name, 0, 2)) }}
{{ $shop->creator->name }}
{{ $shop->creator->email }}
@endsection