<table class="table bda-data-table-box bda-w-500">
    <tbody>
    <tr>
        <th class="text-start">{{__('Subscriber Name')}}</th>
        <td>{{$subscriber?->user?->name ?? __('N/A')}}</td>
    </tr>
    <tr>
        <th class="text-start">{{__('Package Name')}}</th>
        <td>{{$subscriber?->package?->package_name ?? __('N/A')}}</td>
    </tr>
    <tr>
        <th class="text-start">{{__('Package Type')}}</th>
        <td>{{$subscriber?->subscription_type === SUBSCRIPTION_TYPE_YEARLY ? __('Yearly') : ($subscriber?->subscription_type === SUBSCRIPTION_TYPE_MONTHLY ? __('Monthly') : __('N/A'))}}</td>
    </tr>
    <tr>
        <th class="text-start">{{__('Price')}}</th>
        <td>{{$subscriber?->subscription_type === SUBSCRIPTION_TYPE_YEARLY ? showCurrency($subscriber?->yearly_price) : ($subscriber?->subscription_type === SUBSCRIPTION_TYPE_MONTHLY ? showCurrency($subscriber?->monthly_price) : __('N/A'))}}</td>
    </tr>
    <tr>
        <th class="text-start">{{__('Credit')}}</th>
        <td>{{$subscriber?->credit ?? __('N/A')}}</td>
    </tr>
    <tr>
        <th class="text-start">{{__('Start Date')}}</th>
        <td>{{$subscriber?->start_date ?? __('N/A')}}</td>
    </tr>
    <tr>
        <th class="text-start">{{__('End Date')}}</th>
        <td>{{$subscriber?->end_date ?? __('N/A')}}</td>
    </tr>
    <tr>
        <th class="text-start">{{__('Status')}}</th>
        <td>
            @if ($subscriber->status == SUBSCRIBER_STATUS_ACTIVE)
                <div class="success bda-gab-10 d-flex align-items-center">
                    <img src="{{getImageUrl('assets/images/icon/resolved.svg')}}" alt="{{__('Active')}}">
                    {{__('Active')}}
                </div>
            @elseif($subscriber->status == SUBSCRIBER_STATUS_CANCEL)
                <div class="danger bda-gab-10 d-flex align-items-center">
                    <img src="{{getImageUrl('assets/images/icon/Cancelled.svg')}}" alt="{{__('Cancel')}}">
                    {{__('Cancel')}}
                </div>
            @endif
        </td>
    </tr>
    <tr>
        <th class="text-start">{{__('Created at ')}}</th>
        <td>{{$subscriber?->created_at ? $subscriber?->created_at->format('Y-m-d') : __('N/A')}}</td>
    </tr>
    </tbody>
</table>
