@extends('backend.layout.master') @include('backend.profile.css') @section('content')
@php $now = time(); // or your date as well $expiry_date = strtotime(auth()->guard('web')->user()->subscription_expiry); $datediff = $expiry_date - $now; $diffInDays = round($datediff / (60 * 60 * 24)); if($diffInDays >= 0 && $diffInDays <= 7) { $renew = true; echo ''; } $imageUrl = url('storage/'.$user->profile_photo_path); @endphp @if(session()->has('success'))
{{ session()->get('success') }}
@endif @if(session()->has('error'))
{{ session()->get('error') }}
@endif @if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
{{-- --}} {{-- --}}

{{ $user->name }}

@if($user->is_subscription_active)
Subscription Status:
Active
Subscription Start Date:
{{date("m/d/Y",strtotime($user->subscription_start))}}
Subscription End Date:
{{date("m/d/Y",strtotime($user->subscription_expiry))}}
Plan:
Basic
@else
Subscription Status:
Inactive
@endif @if(!$user->is_subscription_active) @endif
@csrf

Security


@endsection @section('page_js') @include('backend.profile.js') @endsection