{{-- layout --}} @extends('layouts.contentLayoutMaster') {{-- page title --}} @section('title','Merchant Detail') {{-- vendors styles --}} @section('vendor-style') @endsection {{-- page style --}} @section('page-style') @endsection @section('content')
{{ $error }}
@endif --}}
                        @endif
                    
                    Email : {{ $merchant->owner->email ?? '-'}}
| Display Merchant ID : | {{ $merchant->display_merchant_id ?? '-'}} | 
|---|---|
| Merchant Class ID : | {{ $merchant->merchant_class_id ?? '-'}} | 
| Grade: | {{ $merchant->grade }} | 
| Limited Credit: | {{ $merchant->limited_credit ?? '-'}} | 
| Latitude: | {{ $merchant->address->latitude ?? '-' }} | 
| Longitude: | {{ $merchant->address->longitude ?? '-' }} | 
| City: | {{ $merchant->address->city->name ?? '-' }} | 
| Township: | {{ $merchant->address->township->name ?? '-' }} | 
| Phone Number: | {{ $merchant->phone_number }} @if($merchant->merchantPhoneNumbers->count() > 0), {{$merchant->merchant_phone_number}} @endif | 
| Address: | {{ $merchant->address->address ?? '-' }} | 
| Working Time | 
                            @forelse ($merchant_working_times as $merchant_working_time)
                            {{ $merchant_working_time->opening_time }} -
                            {{ $merchant_working_time->closing_time }} -
                            {{ $merchant_working_time->day }}  @empty - @endforelse  | 
                    
| # | Merchant Name | City | Township | Total Price | Payment Method | Created | Status | |
|---|---|---|---|---|---|---|---|---|
| {{$key + $orders->firstItem()}} | {{$order->user->name ?? null}} | {{$order->address->city->name ?? null}} | {{$order->address->township->name ?? null}} | {{$order->total_price}} | {{$order->payment_method}} | {{ $order->created_time }} | {{ $order->status }} | remove_red_eye | 
| No Order Found! | ||||||||
| # | Customer Name | Battery Type | Model | status | Is Walk In | Created | |
|---|---|---|---|---|---|---|---|
| {{$key + $merchant_service_reports->firstItem()}} | {{$service_report->customer->name ?? '-'}} | {{$service_report->product->category->name ?? '-'}} | {{$service_report->product->model ?? '-'}} | {{ $service_report->status }} {{-- {{ $service_report->status }} --}} | {{ $service_report->service->is_walk_in == 1 ? 'Yes' : 'No'}} | {{ $service_report->created_time }} | |
                                                No Service Report! | 
                                        |||||||