@extends('layout.masters') @section('content')
@if($category =='upcoming')

Title :

{{$deploymentDetails[0]['dep_title']}}

Server Name :

{{$deploymentDetails[0]['server_name']}}

Branch :

{{ ($deploymentDetails[0]['git_branch'] == null) ? '-' : $deploymentDetails[0]['git_branch'] }}

Deployment Type :

{{$deploymentDetails[0]['dep_type']}}

Status :

{{$deploymentDetails[0]['schedule_status']}}

Schedule Date :

{{date('d M Y', strtotime($deploymentDetails[0]['schedule_date']))}}

Start Time :

{{date('h:i A', strtotime($deploymentDetails[0]['dep_time_start']))}}

Action :

@if( !empty($current_user['dep_id'])) @foreach(explode(',',$current_user->dep_id) as $user_dep_id) @foreach($schedules as $schedule) @if($schedule->dep_id == $user_dep_id && $schedule->schedule_date == date('Y-m-d')) @if($schedule->dep_id == $user_dep_id && $schedule->schedule_status == 'Scheduled') @if($schedule->dep_type == 'manual' && (date('H:i') >= $schedule->dep_time_start && date('H:i') <= $schedule->dep_time_end)) Deploy @endif @endif @endif @endforeach @endforeach @endif
@else

Title :

{{$deploymentDetails[0]['dep_title']}}

Server Name :

{{$deploymentDetails[0]['server_name']}}

Branch :

{{ $deploymentDetails[0]['dep_branch'] }}

Status :

{{$deploymentDetails[0]['dep_result']}}

Deployed By :

{{$deploymentDetails[0]['name']}}

Deployed On :

{{ date('d M Y', strtotime($deploymentDetails[0]['dep_date']))}}

Deployed At :

{{date('h:i A', strtotime($deploymentDetails[0]['updated_at']))}}

Action :

@endif
@endsection