@extends('layouts.app') @section('title', 'Ürün & Finansal') @section('content')

Ürün & Finansal

Ürün ve finansal yönetim paneli

Toplam Ürün

{{ number_format($totalProducts) }}

Master Ürünler

{{ number_format($masterProducts) }}

Senkronize Ürünler

{{ number_format($syncedProducts) }}

{{ $totalProducts > 0 ? number_format(($syncedProducts / $totalProducts) * 100, 1) : 0 }}%

Maliyet Bilgisi

{{ number_format($productsWithCost) }}

{{ $totalProducts > 0 ? number_format(($productsWithCost / $totalProducts) * 100, 1) : 0 }}%

Fiyat İstatistikleri

Ortalama Normal Fiyat {{ $priceStats['avg_regular_price'] ? number_format($priceStats['avg_regular_price'], 2) . ' €' : '-' }}
Ortalama İndirimli Fiyat {{ $priceStats['avg_sale_price'] ? number_format($priceStats['avg_sale_price'], 2) . ' €' : '-' }}
Ortalama Maliyet {{ $priceStats['avg_cost_price'] ? number_format($priceStats['avg_cost_price'], 2) . ' €' : '-' }}
Toplam Normal Fiyat {{ $priceStats['total_regular_price'] ? number_format($priceStats['total_regular_price'], 2) . ' €' : '-' }}
Toplam İndirimli Fiyat {{ $priceStats['total_sale_price'] ? number_format($priceStats['total_sale_price'], 2) . ' €' : '-' }}
Toplam Maliyet {{ $priceStats['total_cost_price'] ? number_format($priceStats['total_cost_price'], 2) . ' €' : '-' }}

Kar Marjı Analizi

Toplam Ürün {{ number_format($marginAnalysis->total ?? 0) }}
Marj Bilgisi Olan {{ number_format($marginAnalysis->with_margin ?? 0) }}
Ortalama Kar Marjı {{ $marginAnalysis->avg_margin_percent ? number_format($marginAnalysis->avg_margin_percent, 2) . '%' : '-' }}
@if($currencyDistribution->count() > 0)

Para Birimi Dağılımı

@foreach($currencyDistribution as $currency)

{{ $currency->currency }}

{{ $currency->total }} Site

@endforeach
@endif @if($productsBySite->count() > 0)

Site Bazlı Ürün Dağılımı

@foreach($productsBySite->take(10) as $item) @endforeach
Site Ürün Sayısı Para Birimi
{{ $item->site->name ?? 'Bilinmeyen Site' }} {{ number_format($item->total) }} {{ $item->site->currency ?? '-' }}
@endif @if($recentProducts->count() > 0)

Son Eklenen Ürünler

@foreach($recentProducts as $product) @endforeach
Ürün Adı Site Normal Fiyat İndirimli Fiyat Durum
{{ $product->name }} {{ $product->site->name ?? '-' }} {{ $product->regular_price ? number_format($product->regular_price, 2) . ' €' : '-' }} {{ $product->sale_price ? number_format($product->sale_price, 2) . ' €' : '-' }} @if($product->isSyncedToWordPress()) Senkronize @else Beklemede @endif
@endif
@endsection