@extends('back_office.layouts.app') @section('content')
@if($customer->avatar) profile_image @else profile_image @endif
{{ $customer->name }}

Email: {{ $customer->email }}

Phone Number: {{ $customer->phone }}

@if($customer->created_at)

Account Created At: {{ $customer->created_at->format('d-m-Y') }}

@endif
@if($fcm_setting)
@endif @if($sms_setting)
@endif @if($mail_setting)
@endif
@csrf
@if(Session::has('password')) @endif
cash_payment_flag) == 1 ? 'checked' : '' }}>
@if(count($subscriptions) > 0) @foreach($subscriptions as $subscription)
{{-- --}} @if($subscription->freeze == 0) Freeze @else Unfreeze @endif
{{$subscription->package->name}} @if($subscription->freeze == 0) Active @else Inactive @endif
{{$subscription->package->monthly_price}} QAR /month

Subscription start date: {{ $subscription->start_date }}

Subscription end date: {{ $subscription->end_date }}

@php $days = \App\Models\Day::whereIn('id', json_decode($subscription->package_days->days))->get(); @endphp
Wash days:
@foreach($days as $day) {{ $day->name }} @endforeach
@foreach($subscription->cars as $car)
Customer Car:
  • Car type: {{$car->type->name}}
  • Car model: {{$car->model->name}}
  • Car brand: {{$car->brand->name}}
  • Car color:
  • @if($car->location->compound_name && $car->location->near_building_name)
  • Address: {{$car->location->area}},{{$car->location->street_name}},{{$car->location->compound_name}},{{$car->location->near_building_name}}
  • @elseif($car->location->compound_name && $car->location->near_building_name == null)
  • Address: {{$car->location->area}},{{$car->location->street_name}},{{$car->location->compound_name}}
  • @elseif($car->location->compound_name==null && $car->location->near_building_name)
  • Address: {{$car->location->area}},{{$car->location->street_name}},{{$car->location->near_building_name}}
  • @else
  • Address: {{$car->location->area}},{{$car->location->street_name}}
  • @endif
  • Plate number: {{$car->plate_number}}
  • Car location: Open maps
  • Car Image: Open image
@endforeach
@php $dates = \App\Models\SubscriptionDate::where('subscription_id', $subscription->id)->get(); @endphp
Wash history:
@foreach($dates as $date) @if($date->date <= date('Y-m-d')) {{date('d-m-Y', strtotime($date->date))}} @endif @endforeach
@php $dates = \App\Models\SubscriptionDate::where('subscription_id', $subscription->id)->get(); @endphp
Upcoming washes:
@foreach($dates as $date) @if($date->date > date('Y-m-d')) {{date('d-m-Y', strtotime($date->date))}} @endif @endforeach
@php $invoices = \App\Models\Payment::where('subscription_id', $subscription->id)->get(); @endphp @if(count($invoices))
Payment History
@foreach($invoices as $invoice) @if($invoice->coupon_id) @if($invoice->coupon->type == 'percent') @else @endif @else @endif @endforeach
# Package Package Price Discount Paid Amount Payment Type Subs.type Total
{{ $invoice->transaction_code }} {{ $invoice->subscription->package->name }} {{ $invoice->subscription->package->monthly_price }} QAR{{ $invoice->coupon->amount }} %{{ $invoice->coupon->amount }} QARN/A{{ $invoice->amount }} QAR {{ $invoice->payment_method_type }} {{ $invoice->type }} {{ $invoice->amount }} QAR
@endif
@endforeach @else
This Customer is not subscribed yet !
@endif
@endsection