@extends('admin.layouts.main-layout') @php $title = 'View Customer Details'; @endphp @section('title', $title) @section('content')
{{ $title }}

{{ $customer->first_name . ' ' . $customer->last_name }}

{{ $customer->mobile }}

{{ $customer->email }}

{{ $customer->status == 'active' ? 'Activated' : 'Blocked' }}

Active Plan Details
@if (isset($customer_plan->plan->plan_name) && !empty($customer_plan->plan->plan_name))

{{ $customer_plan->plan->plan_name }}

@else

Free

@endif
@if (isset($customer_plan->plan->plan_price) && $customer_plan->plan->plan_price != 0 && isset($customer_plan->plan->plan_price_base) && $customer_plan->plan->plan_price_base != '')

@if ($customer_transaction && $customer_transaction->currency) {{ $customer_transaction->currency }} @endif {{ $customer_plan->plan->plan_price . '/' . ucwords($customer_plan->plan->plan_price_base) }}

@else

INR 0

@endif
@if (isset($customer_plan->expiry_date) && !empty($customer_plan->expiry_date))

{{ date('F d, Y', strtotime($customer_plan->expiry_date)) }}

@else

Life-Time

@endif
@if (isset($customer_plan->plan->plan_storage_limit) && $customer_plan->plan->plan_storage_limit != 0)

{{ $customer_plan->plan->plan_storage_limit . ' GB' }}

@else

1 GB

@endif
@if ($customer_transaction)
Payment Details
@if (isset($customer_transaction->transaction_status) && !empty($customer_transaction->transaction_status))

{{ $customer_transaction->transaction_status == 'success' ? 'Successful' : 'Failed' }}

@else

Pending

@endif
@if (isset($customer_transaction->payment_gateway) && !empty($customer_transaction->payment_gateway))

{{ $customer_transaction->payment_gateway }}

@endif
@if (isset($customer_transaction->gateway_order_id) && !empty($customer_transaction->gateway_order_id))

{{ $customer_transaction->gateway_order_id }}

@endif
@if (isset($customer_transaction->gateway_payment_id) && !empty($customer_transaction->gateway_payment_id))

{{ $customer_transaction->gateway_payment_id }}

@endif
@endif @if ($customer_plan && $customer_plan->invoice)
Payment Invoice Details
@if (isset($customer_plan->invoice->status) && !empty($customer_plan->invoice->status))

{{ $customer_plan->invoice->status == 'success' ? 'Generated' : 'Failed' }}

@else

Pending

@endif
@if (isset($customer_plan->invoice->invoice_number) && !empty($customer_plan->invoice->invoice_number))

{{ $customer_plan->invoice->invoice_number }}

@endif
@if (isset($customer_plan->invoice->encrypted_id) && !empty($customer_plan->invoice->encrypted_id))

View Invoice

@endif
@endif
@endsection