@extends('admin.layouts.master') @section('title', 'Your Zoom Meetings') @section('maincontent') @include('admin.layouts.topbar',$data)
{{ $error}}
@endforeach{{ __("Do you really want to delete these records? This process cannot be undone.")}}
{{ __('FirstName') }}: {{ isset($profile['first_name']) ? $profile['first_name'] : '' }}
{{ __('LastName') }}: {{ isset($profile['last_name']) ? $profile['last_name'] : '' }}
{{ __('Timezone') }}: {{ isset($profile['timezone']) ? $profile['timezone'] : '' }}
{{ __('Status') }}: {{ isset($profile['status']) ? $profile['status'] : '' }}
{{ __('Zoom ID:') }} {{ isset($profile['id']) ? $profile['id'] : '' }}
{{ __('Language') }}: {{ isset($profile['language']) ? $profile['language'] : '' }}
# | {{ __('MeetingID') }} | {{ __('Meeting') }} {{ __('URL') }} | {{ __('Action') }} |
---|---|---|---|
{{ $i }} |
{{ __('MeetingID') }}: {{ $meeting['id'] }} {{ __('MeetingTopic') }}: {{ $meeting['topic'] }} {{ __('Agenda') }}: {{ isset($meeting['agenda']) ? str_limit($meeting['agenda'], $limit = 10, $end = '...') : "" }} {{ __('Duration') }}: {{ isset($meeting['duration']) ? $meeting['duration'] : "" }} min {{ __('StartTime') }}:{{ isset($meeting['start_time']) ? date('d-m-Y | h:i:s A',strtotime($meeting['start_time'])) : "" }} {{ __('Meeting Type:') }} @if($meeting['type'] == '2') {{ __('Scheduled Meeting') }} @elseif($meeting['type'] == '3'){{__(' Recurring Meeting with no fixed time ')}}@else {{__('Recurring Meeting with fixed time')}} @endif |
{{ $meeting['join_url'] }} | @php $curl = curl_init(); $client_id = env('ZOOM_CLIENT_KEY'); $client_secret = env('ZOOM_CLIENT_SECRET'); $account_id = env('ZOOM_ACCOUNT_ID'); $credentials = base64_encode("$client_id:$client_secret"); $token_url = "https://zoom.us/oauth/token?grant_type=account_credentials&account_id=$account_id"; $headers = array( "Authorization: Basic $credentials", "Content-Type: application/x-www-form-urlencoded" ); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $token_url); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); $httpcode = curl_getinfo($ch, CURLINFO_HTTP_CODE); curl_close($ch); $json_response = json_decode($response, true); $token = $json_response['access_token']; $meetingID = $meeting['id']; curl_setopt_array($curl, array( CURLOPT_URL => "https://api.zoom.us/v2/meetings/$meetingID", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "GET", CURLOPT_HTTPHEADER => array( "authorization: Bearer $token" ), )); $url = curl_exec($curl); $err = curl_error($curl); $url = json_decode($url,true); curl_close($curl); @endphp |