@extends('crm.layouts.app') @section('title', 'Gallery Analytics') @section('content')

Gallery Analytics

Track performance and insights for your {{ $type === 'designs' ? 'flash designs' : 'portfolio' }}.

@if($type === 'designs')

Most Popular Designs (Views)

@if($popularItems->count() > 0)
@foreach($popularItems as $item)
{{ $item->title }}

{{ $item->title }}

{{ $item->artist->name }}

{{ $item->view_count }}

views

@endforeach
@else

No data available yet.

@endif

Trending Designs (Bookings)

@if($trendingItems->count() > 0)
@foreach($trendingItems as $item)
{{ $item->title }}

{{ $item->title }}

{{ $item->artist->name }}

{{ $item->booking_count }}

bookings

@endforeach
@else

No bookings yet.

@endif
@else

Featured Portfolio Pieces

@if($popularItems->count() > 0)
@foreach($popularItems as $item)
{{ $item->title }}

{{ $item->title }}

{{ $item->artist->name }}

@if($item->client_rating)
{{ $item->getRatingStars() }}
@endif
@endforeach
@else

No featured pieces yet.

@endif
@endif

Top Artists

@if($topArtists->count() > 0)
@foreach($topArtists as $artist)
{{ strtoupper(substr($artist->name, 0, 2)) }}

{{ $artist->name }}

{{ $artist->galleries_count }} {{ $type === 'designs' ? 'designs' : 'pieces' }}

{{ $artist->galleries_count }}
@endforeach
@else

No data available yet.

@endif
@endsection