@extends('layout') @section('content')
Check Customer
@csrf

{{ __('Customer Details') }}
@if (session('success')) @endif @if (!empty($customer_details)) @endif
Customer ID Customer Name Date Mobile Created On
{{ $customer_details->id }} {{ $customer_details->customer_name }} {{ $customer_details->address }} {{ $customer_details->phone_number }} {{ $customer_details->created_at }}

Product Details

@if ( isset($customer_details->custproducts)) @foreach ($customer_details->custproducts as $key=>$data) @endforeach @endif
Sl No Customer ID Product ID Quantity Delivery Mode Delivery Start Date Sun Mon TUe Wen Thu Fri Sat Created On
{{ $key+1 }} {{ $data->customer_id }} {{ $data->product_id }} {{ $data->quantity }} {{ $data->delivery_mode }} {{ !empty($data->delivery_start_date) ? date('d-m-Y', strtotime($data->delivery_start_date)) : '-' }} {{ $data->sun }} {{ $data->mon }} {{ $data->tue }} {{ $data->wed }} {{ $data->thu }} {{ $data->fri }} {{ $data->sat }} {{ date('d-m-Y', strtotime($data->created_at)) }}
@endsection @section('script') @endsection