@extends('base_view') @section('body')

filterfromDate }} >
filtertoDate }}>

{{ $shop->name }}

{{ $shop->created_at }}

@if ($shop->ShopCity)

{{ $shop->ShopCity->name }}

@endif

@if ( $shop->isStore) Store

@else Restaurant

@endif
Store Image

Address: {{ $shop->address }}

Tags: @if ($shop->tags) @foreach ( $shop->ShopProductsTags as $tag) {{ $tag->name }} {{ $tag->nameAR }} @endforeach @endif Add Tag

{{-- --}} {{-- --}} {{-- --}}

Total Completed Orders

{{ $shop->getshopReports->TotalCount}}

Total Income

{{ $shop->getshopReports->TotalIncume}} ORM
--}} {{--
--}} {{--
--}} {{--

Tax: %{{(array_get($shop->TaxOne, 'value' )+ array_get($shop->TaxTwo, 'value' )) *100}}

--}} {{-- {{ $shop->getshopReports->TotalIncume *(array_get($shop->TaxOne, 'value' )+ array_get($shop->TaxTwo, 'value' ))}} ORM--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{--

Fees: %{{$shop->subscription_fees*100}}

--}} {{-- {{ $shop->getshopReports->TotalIncume * $shop->subscription_fees}} ORM--}} {{--
--}} {{--
--}} {{--

About:

@if ($shop->Dealer)

{{$shop->Dealer-> first_name}} {{$shop->Dealer-> login_phone}}

@endif

{{ $shop->description }}

{{array_get($shop->TaxTwo, 'name_en' )}}- {{array_get($shop->TaxTwo, 'name_ar' )}} : {{array_get($shop->TaxTwo, 'value' )}}

Delivery Price : {{$shop->delivery_price}} ORM

{{array_get($shop->TaxOne, 'name_en' )}}- {{array_get($shop->TaxOne, 'name_ar' )}}: {{array_get($shop->TaxOne, 'value' )}}

Delivery Time : {{$shop->delivery_time_min}} min

Products

@foreach ( $shop->products as $product)
user
{{$product->name}}
{{$product->description}}
@php ($deleteURL = $adminURL.'products/'. $product->id .'/delete/' ) @php ( $editUrl = $adminURL.'products/'. $product->id .'/edit/ ' ) Edit delete
@endforeach

New Orders

@foreach ( $shop->neworders as $order) @php ($login_phone ='' ) @php ( $first_name = '' ) @php ( $editUrl ='#' ) @if ($order->CustomerInfo) @php ( $login_phone = $order->CustomerInfo->login_phone ) @php ( $first_name = $order->CustomerInfo->first_name ) @php ( $editUrl = $adminURL.'customers/'. $order->CustomerInfo->id .'/edit/ ' ) @endif @php ( $editUrl = $adminURL.'orders/'. $order->id .'/edit/ ' ) @endforeach
id created_at total_value tax {{array_get($shop->TaxOne, 'value' )+ array_get($shop->TaxTwo, 'value' )}} store fees {{ $shop->subscription_fees}} state CustomerInfo cartProdcuts Action
{{$order->id}} {{$order->created_at}} {{$order->total_value}} {{$order->total_value * (array_get($shop->TaxOne, 'value' )+ array_get($shop->TaxTwo, 'value' ))}} {{$order->total_value * $shop->subscription_fees}} {{$order->state}} {{$login_phone}} , {{$first_name}} @if ($order->cartProdcuts) @foreach ( $order->cartProdcuts as $cartProdcut) @php ( $editUrl = $adminURL.'products/'. $cartProdcut->Products_id .'/edit/ ' ) {{$cartProdcut->product_name}} @endforeach @endif Edit
New Orders

Finshed Orders

@foreach ( $shop->getshopReports->orders as $order) @php ($login_phone ='' ) @php ( $first_name = '' ) @php ( $editUrl ='#' ) @if ($order->CustomerInfo) @php ( $login_phone = $order->CustomerInfo->login_phone ) @php ( $first_name = $order->CustomerInfo->first_name ) @php ( $editUrl = $adminURL.'customers/'. $order->CustomerInfo->id .'/edit/ ' ) @endif @php ( $editUrl = $adminURL.'orders/'. $order->id .'/edit/ ' ) @endforeach
id created_at total_value tax {{array_get($shop->TaxOne, 'value' )+ array_get($shop->TaxTwo, 'value' )}} store fees {{ $shop->subscription_fees}} state CustomerInfo cartProdcuts Action
{{$order->id}} {{$order->created_at}} {{$order->total_value}} {{$order->total_value * (array_get($shop->TaxOne, 'value' )+ array_get($shop->TaxTwo, 'value' ))}} {{$order->total_value * $shop->subscription_fees}} {{$order->state}} {{$login_phone}} , {{$first_name}} @if ($order->cartProdcuts) @foreach ( $order->cartProdcuts as $cartProdcut) @php ( $editUrl = $adminURL.'products/'. $cartProdcut->Products_id .'/edit/ ' ) {{$cartProdcut->product_name}} @endforeach @endif Edit
@stop