@php
$url = backpack_url('call/' . $call->id . '/show');
@endphp
| {{ $call->call_id }} |
{{ $call->status }} |
{{ \Illuminate\Support\Str::limit($call->ai_summary, 20) }}
|
{{ \Carbon\Carbon::parse($call->call_created_at)->format('Y-m-d H:i:s'); }} |
{{ \Carbon\Carbon::parse($call->call_ended_at)->format('Y-m-d H:i:s'); }} |
@foreach( $call->aiPrescriptions as $prescription)
@php
$class = "";
if ( $prescription->has_update) {
$class = "collect";
}
if ( $prescription->has_collect ) {
$class = "completed";
}
$showUrl = backpack_url('ai-prescription/' . $prescription->id . '/edit');
$messageUrl = route('message', [
'call_id' => $call->id,
'prescription_id' => $prescription->id,
]);
$updateUrl = route('updateAiPrescriptionAiEndpoint', ['prescription_id' => $prescription->id]);
$completeUrl = route('collectAiPrescriptionAiEndpoint', ['prescription_id' => $prescription->id]);
$pivot = $prescription->calls()->wherePivot('call_id', $call->id)->first();
$textBackNumber = $pivot->pivot->text_back_number;
@endphp
@if (!empty($textBackNumber))
@endif
@endforeach
|
@endforeach