@extends('app') @section('title', 'Customers') @section('content')

Customer Information

image {{--

Customer Information

--}} {{--

Hye, I’m Michael Franklin residing in this beautiful world. I create websites and mobile apps with great UX and UI design. I have done work with big companies like Nokia, Google and Yahoo. Meet me or Contact me for any queries. One Extra line for filling space. Fill as many you want.


--}}
{{$customer->name}}
{{$customer->contact}}
{{$customer->email ?? 'Empty'}}
{{$customer->address?? 'Empty'}}
12
{{--

Full Name : {{$customer->name}}

Mobile : {{$customer->contact}}

Email : {{$customer->email}}

Location : {{$customer->location}}

Total Ordered :

--}}
Sizes
@foreach ($customer->size as $item) @endforeach
SL Product Size Last Update At
{{++$loop->index}} {{$item->product->product_name}} @php $array = preg_split('/[,-]/', $item->size, -1, PREG_SPLIT_NO_EMPTY); @endphp @forelse ($array as $item) {{$item}} @empty no data @endforelse {{$item->created_at ?? ''}}
Orders
{{-- --}} @foreach ($customer->orders as $order) {{-- --}} {{-- --}} @endforeach
INVOICE ID Name Product Stage Total Order AtMake ByPayment Status Action
{{$order->invoice_no}} {{$order->customer->name}} @if ($order->stage == 'delivered')
Delivered
@elseif($order->stage == 'ordered')
Ordered
@elseif('ready')
Ready
@else
Cancelled
@endif
August 03 2018 07:56 AM {{$order->total}} {{$order->created_at}} @if ($order->payment >= $order->total)
Paid
@else
Due
@endif
send
@endsection {{-- @foreach ($customer->size as $item) --}} {{-- {{ $item}} --}} {{--
{{$customer->size->product->product_name}}

{{$customer->size->created_at}}

{{-- {{$customer->size->size}} --}} {{-- {{$item }} --}} {{--

@php $customerSize= explode(',',$customer->size->size); @endphp @foreach ($customerSize as $item) @php if(count($customerSize) % 2 === 0){ @endphp {{$item }} @php }elseif (count($customerSize) % 3 === 0) { @endphp {{$item }} @php }else{ @endphp {{$item }} @php } @endphp @endforeach

@endforeach --}}