{{$item->detail}}
{{__('staticwords.readmore')}}@extends('layouts.theme')
@section('title',__('staticwords.watchhistory'))
@section('main-wrapper')
@php
$withlogin= App\Config::findOrFail(1)->withlogin;
$catlog= App\Config::findOrFail(1)->catlog;
$auth=Auth::user();
// $subscribed = null;
// if (isset($auth)) {
// $current_date = date("d/m/y");
// $auth = Illuminate\Support\Facades\Auth::user();
// if ($auth->is_admin == 1 || $auth->is_assistant == 1) {
// $subscribed = 1;
// } else if ($auth->stripe_id != null) {
// Stripe\Stripe::setApiKey(env('STRIPE_SECRET'));
// if(isset($invoices) && $invoices != null && count($invoices->data) > 0)
// {
// $user_plan_end_date = date("d/m/y", $invoice->lines->data[0]->period->end);
// $plans = App\Package::all();
// foreach ($plans as $key => $plan) {
// if ($auth->subscriptions($plan->plan_id)) {
// if($current_date <= $user_plan_end_date)
// {
// $subscribed = 1;
// }
// }
// }
// }
// } else if (isset($auth->paypal_subscriptions)) {
// //Check Paypal Subscription of user
// $last_payment = $auth->paypal_subscriptions->last();
// if (isset($last_payment) && $last_payment->status == 1) {
// //check last date to current date
// $current_date = Illuminate\Support\Carbon::now();
// if (date($current_date) <= date($last_payment->subscription_to)) {
// $subscribed = 1;
// }
// }
// }
// }
@endphp
@if (isset($pusheditems) && count($pusheditems) > 0 )
{{$item->detail}}
{{__('staticwords.readmore')}}{{$item->detail}}
@else{{$item->tvseries->detail}}
@endif