@extends('layouts.admin') @section('header-content') @endsection @section('content')
@if(count($shop->shopOtherImages($shop->id))>0) @foreach($shop->shopOtherImages($shop->id) as $key3=>$image) @if(($key3+1)%4==0) @endif @endforeach @else @endif @if(count($shop->shopDisplayImages($shop->id)))>0) @foreach($shop->shopDisplayImages($shop->id) as $key4=>$image) @if(($key4+1)%4==0) @endif @endforeach @else @endif @if(count($shop->stock)>0) @foreach($shop->stock as $key=>$stock) @if(($key+1)%2==0) @endif @endforeach @else @endif @foreach($shop->product_discount as $index=>$price) @if(($index+1)%2==0) @endif @endforeach
{{$shop->name}} Detail @if( Auth::user()->can('modify_customers')) @endif
Customer Name {{$shop->name}} Customer Email {{$shop->email}}
Proprietor Name {{$shop->proprietor->firstname.' '.$shop->proprietor->lastname}} Contact Person {{$shop->contact_person->firstname.' '.$shop->contact_person->lastname}}
Location {{$shop->location}} Region @if(isset($shop->region) && isset($shop->region->name)){{$shop->region->name}}@endif
Latitude {{$shop->latitude}} Longitude {{$shop->longitude}}
Phone 1 {{$shop->phone_1}} Phone 2 {{$shop->phone_2}}
Landline # {{$shop->landline}} Discount Percentage {{$shop->discount_percentage}}
Opening Balance {{$shop->opening_balance}} Biocos Ratting {{$shop->biocos_ratting}}
Status {{$shop->status}} Customer Type {{$shop->customer_type}}
Shop Type {{$shop->shop_type}} Category {{$shop->Category}}
Created At {{$shop->created_at}} Updated At {{$shop->updated_at}}
Customer Images
@if(isset($image->image_url)) @endif
No Images Available
Display Images
@if(isset($image->image_url)) @endif
No Images Available
Available Stock
Product Stock Product Stock
@if(isset($stock->product->name)) {{$stock->product->name}} @endif {{$stock->quantity}}
No Stock Available
Product Prices for {{$shop->name}}
Product Price Product Price
@if(isset($price->products->name)) {{$price->products->name}} @endif @php $price_with_discount=''; $price_with_discount=$price_with_discount.$price->discounts->grade; $value=$price->discounts->value; foreach ($price->products->ProductPrices as $price2){ if($price2->currency_id==$shop->currency_id){ $real_price=$price2->price; $real_price2=round(($real_price+$shop->currency->mpx)+($value),2); $price_with_discount=$price_with_discount.' '.$real_price2; } } echo $price_with_discount; @endphp
@endsection