@extends($activeTemplate.'layouts.master') @section('content') @php if($subscribe){ $start = Carbon\Carbon::parse($subscribe->starts_at); $end = Carbon\Carbon::parse($subscribe->ends_at); $durationInDays = $end->diffInDays($start); $duration = $end->diffForHumans($start); } @endphp