@extends('layouts.app') @section('title') {{ config('app.name', 'Laravel') }} | {{ __('common.dashboard') }} @endsection @section('heading') {{ __('common.dashboard') }} @endsection @section('heading-icon') home @endsection @section('page-breadcrumbs') {{ Breadcrumbs::render($options['route_name'] ?? '') }} @endsection @section('content') @include('includes.alerts')
{{-- @foreach ($widgets as $key => $widget)
{{ $widget['title'] }}

{{ $widget['summary'] }}

{!! $widget['icon'] !!}
@if ($widget['more_info'] !== '') {{ __('common.more_info') }} forward @endif
@endforeach --}}
@foreach ( $widgets as $widget )
{!! $widget['icon'] !!}
{{ $widget['title'] }}

{{ $widget['summary'] }}

@if ($widget['more_info'] !== '') {{ __('common.more_info') }} forward @endif
@endforeach
{{-- {{dd($recent_orders)}} --}} @if (auth()->id() == 1)
{{ __('common.recent_orders') }}
@foreach ($recent_orders as $orders) @foreach ($orders->ProductDetail as $product_name) @endforeach @endforeach
{{ __('common.order_id') }} {{ __('common.product_name') }} {{ __('common.created_on') }} {{ __('common.status') }}
{{ $orders->id }} {{ $product_name->product_name }} {{ date('d-m-Y', strtotime($orders->created_at)) }}
{{-- {{dd($top_products)}} --}}
{{ __('common.top_products') }}
{{-- --}} {{-- --}} @foreach ($top_products as $products) {{-- --}} {{-- --}} @endforeach
Order ID{{ __('common.product_name') }} {{ __('common.created_on') }}Status
{{$orders->order[0]->order_number}}{{ $products->product_name }} {{ date('d-m-Y', strtotime($products->created_at)) }}
{{-- {{dd($top_sellers)}} --}}
{{ __('common.top_sellers') }}
{{-- --}} {{-- --}} @foreach ($top_sellers as $sellers) {{-- --}} {{-- --}} @endforeach
Order ID{{ __('common.seller_name') }} {{ __('common.created_on') }}Status
{{$orders->order[0]->order_number}}{{ $sellers->owner_name }} {{ date('d-m-Y', strtotime($sellers->created_at)) }}
{{ __('common.new_sellers') }}
{{-- --}} {{-- --}} @foreach ($new_sellers as $new_sellers) {{-- --}} {{-- --}} @endforeach
Order ID{{ __('common.seller_name') }} {{ __('common.created_on') }}Status
{{$orders->order[0]->order_number}}{{ $new_sellers->owner_name }} {{ date('d-m-Y', strtotime($new_sellers->created_at)) }}
@endif @endsection @push( 'head.end' ) @endpush