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

ڕاپۆرتی فرۆشی گەیاندن (ئۆنلاین)

گەڕانەوە
{{-- ========== Summary Cards ========== --}}
ئەمرۆ
{{ number_format($today->count ?? 0) }} داواکاری
قازانج: {{ number_format($today->profit ?? 0) }} د.ع
گشتی: {{ number_format($today->total ?? 0) }} د.ع
ئەم هەفتەیە
{{ number_format($this_week->count ?? 0) }} داواکاری
قازانج: {{ number_format($this_week->profit ?? 0) }} د.ع
گشتی: {{ number_format($this_week->total ?? 0) }} د.ع
ئەم مانگە
{{ number_format($this_month->count ?? 0) }} داواکاری
قازانج: {{ number_format($this_month->profit ?? 0) }} د.ع
گشتی: {{ number_format($this_month->total ?? 0) }} د.ع
ئەم ساڵە
{{ number_format($this_year->count ?? 0) }} داواکاری
قازانج: {{ number_format($this_year->profit ?? 0) }} د.ع
گشتی: {{ number_format($this_year->total ?? 0) }} د.ع
{{-- ========== 3 Main Tabs ========== --}}
{{-- ============================================================ --}} {{-- SECTION 1 : فرۆشی ئۆنلاین --}} {{-- ============================================================ --}}
{{-- Daily --}}
فرۆشی گەیاندن — ڕۆژانە (٣٠ ڕۆژی ڕابردوو)
@if($daily->count())
@foreach($daily as $row) @endforeach
بەروار
داواکاری
گشتی (د.ع)
قازانج (د.ع)
{{ $row->date }} {{ $row->count }} {{ number_format($row->total) }} {{ number_format($row->profit) }}
کۆی گشتی {{ $dc }} داواکاری {{ number_format($dtt) }} {{ number_format($dp) }}
@else

داتایەک نییە بۆ ٣٠ ڕۆژی ڕابردوو

@endif
{{-- Weekly --}}
فرۆشی گەیاندن — هەفتانە (١٦ هەفتەی ڕابردوو)
@if($weekly->count())
@foreach($weekly as $row) @endforeach
هەفتە
داواکاری
گشتی (د.ع)
قازانج (د.ع)
{{ $row->week_start }} (هەفتە {{ $row->week }}) {{ $row->count }} {{ number_format($row->total) }} {{ number_format($row->profit) }}
کۆی گشتی {{ $wc }} داواکاری {{ number_format($wtt) }} {{ number_format($wp) }}
@else

داتایەک نییە

@endif
{{-- Monthly --}}
فرۆشی گەیاندن — مانگانە (٢٤ مانگی ڕابردوو)
@if($monthly->count())
@foreach($monthly as $row) @endforeach
مانگ
داواکاری
گشتی (د.ع)
قازانج (د.ع)
{{ $row->year }}-{{ str_pad($row->month,2,'0',STR_PAD_LEFT) }} @if($isc1) ← ئەم مانگە@endif {{ $row->count }} {{ number_format($row->total) }} {{ number_format($row->profit) }}
کۆی گشتی {{ $mc }} داواکاری {{ number_format($mtt) }} {{ number_format($mp) }}
@else

داتایەک نییە

@endif
{{-- Yearly --}}
فرۆشی گەیاندن — ساڵانە
@if($yearly->count())
@foreach($yearly as $row) @endforeach
ساڵ
داواکاری
گشتی (د.ع)
قازانج (د.ع)
{{ $row->year }} {{ $row->count }} {{ number_format($row->total) }} {{ number_format($row->profit) }}
کۆی گشتی {{ $yc }} داواکاری {{ number_format($ytt) }} {{ number_format($yp) }}
@else

داتایەک نییە

@endif
{{-- Recent 50 --}}
دوایین ٥٠ داواکاری گەیاندن
@forelse($recent as $order) @empty @endforelse
#
کڕیار
مۆبایل
گشتی (د.ع)
قازانج (د.ع)
کۆمپانیا
بەروار
{{ $order->id }} {{ optional($order->online_customer)->name ?? $order->name }} {{ optional($order->online_customer)->phone ?? $order->phone }} {{ number_format($order->real_total) }} {{ number_format($order->profit) }} {{ optional($order->delivery->first())->company ?? '—' }} {{ $order->created_at->format('Y-m-d') }}
هیچ داواکاریەک نییە
{{-- /sec-sells --}} {{-- ============================================================ --}} {{-- SECTION 2 : کڕیارە ئۆنلاینەکان --}} {{-- ============================================================ --}}
چالاکترین کڕیارانی گەیاندن (٢٠ یەکەم)
@if($top_customers->count())
@foreach($top_customers as $i => $cus) @endforeach
#
ناوی کڕیار
مۆبایل
داواکاری
گشتی (د.ع)
قازانج (د.ع)
{{ $i+1 }} {{ optional($cus->online_customer)->name ?? '—' }} {{ optional($cus->online_customer)->phone ?? '—' }} {{ $cus->count }} {{ number_format($cus->total) }} {{ number_format($cus->profit) }}
@else

کڕیارێکی تۆمارکراو نییە

@endif
{{-- /sec-customers --}} {{-- ============================================================ --}} {{-- SECTION 3 : جیاوازی فرۆشی مانگانە --}} {{-- ============================================================ --}}
جیاوازی فرۆشی مانگانە — بەراوردی هەر مانگێک لەگەڵ مانگی پێشووی
@if($monthly->count() > 1)
داواکاری بەپێی مانگ
قازانج (د.ع) بەپێی مانگ
ئەم مانگە    مانگەکانی تر
@foreach($monthly as $row) @endforeach
مانگ
داواکاری
گشتی (د.ع)
قازانج (د.ع)
گۆڕانی داواکاری
گۆڕانی قازانج
{{ $ml }}@if($isc2) ← ئەم مانگە@endif {{ $row->count }} {{ number_format($row->total) }} {{ number_format($row->profit) }} @if($dc2!==null) @if($dc2>0)▲ {{ $dc2 }} ({{ $pc2 }}%) @elseif($dc2<0)▼ {{ abs($dc2) }} ({{ abs($pc2) }}%) @else— ماوەتەوە@endif @else—@endif @if($dp2!==null) @if($dp2>0)▲ {{ number_format($dp2) }} ({{ $pp2 }}%) @elseif($dp2<0)▼ {{ number_format(abs($dp2)) }} ({{ abs($pp2) }}%) @else— ماوەتەوە@endif @else—@endif
@else

داتای پێویست نییە بۆ بەراورد (کەمی دوو مانگ دەوێت)

@endif
{{-- /sec-compare --}}
{{-- widget-content --}}
{{-- statbox --}}
{{-- col --}} @endsection