@extends('admin.layout') @section('content')

{{ trans('View Subscription Details') }}

@php $getUserRoleData = userRoleData(); $ministra = explode(",",$getUserRoleData->ministra); @endphp
@if(in_array("View", $ministra))

@if(!empty($result['macDetails'])) Subscription Details @else No Record Found. @endif
@foreach($result['macDetails'] as $k => $v) @foreach($v as $k1 => $v1)
{{ ucfirst($k1) }} @if($k1 == 'Valid until') {{ date('d/m/Y', strtotime($v1)) }} @else {{ $v1 }} @endif @if($k1 == 'DB' && in_array("Edit", $ministra))     @endif @if($k1 == 'DB' && in_array("Delete", $ministra)) @if(in_array("Edit", $ministra))    @endif @endif
@endforeach
@endforeach
@if($result['logs']->isNotEmpty())
Logs
@foreach($result['logs'] as $log)
{{ $log->user->first_name . ' ' . $log->user->last_name }} changed {{ $log->name . ' ' . $log->old_values }} to {{ $log->new_values }} on {{ date('d/m/Y h:i a', strtotime($log->created_at)) }}
@endforeach @endif @endif
@include('admin.mac-modal') @endsection @section('scripts') @include('admin.mac-js') @endsection