@extends('layouts.admin.app') @section('title',translate('messages.subscription_preview')) @push('css_or_js') @endpush @section('content') @php $reasons=\App\Models\OrderCancelReason::where('status', 1)->where('user_type' ,'admin' )->get(); @endphp

{{translate('messages.subscription')}} {{ translate('messages.order') }} {{translate('messages.id')}} # {{$subscription->order->id}}

{{ translate('messages.'.$subscription->type) }} {{translate('messages.subscription_period')}} : {{date('d F Y' ,strtotime($subscription->start_at))}} - {{date('d F Y', strtotime($subscription->end_at))}} @if (in_array($subscription->status, ['paused', 'canceled'])) {{ translate('messages.'.$subscription->status) }} @endif
@include("admin-views.order-subscription.partials._{$tab}")

{{translate('messages.subscription_setup')}}

@if ($subscription->status != 'expired') @endif

{{translate('messages.customer')}}

@if($subscription->customer)

{{$subscription->customer->order_count}} {{translate('messages.orders')}}
{{----}}

{{translate('messages.contact')}} {{translate('messages.info')}}
  • {{$subscription->customer['email']}}
  • {{$subscription->customer['phone']}}
{{translate('messages.addresses')}}
@foreach($subscription->customer->addresses as $address)
@endforeach
@endif
@endsection @push('script_2') @endpush