@extends('layouts.head_office_app') @section('title', 'Case ' . $case->id) @section('sub-header') @include('head_office.case_manager.notes.sub-header') @endsection @section('content')
@include('layouts.error')
Share Case
@csrf {{-- {{ $case->link_case_with_form['form_id'] }} --}}

Who do you want to share this case with?

@if (isset($share_case)) @else @endif

Reason for sharing?

No saved reasons

@if (isset($all_qustions) && count($all_qustions) > 0) @foreach ($all_qustions as $question)
@endforeach @endif
@if (isset($share_case)) @foreach ($share_case->documents as $doc)
  •  {{ $doc->document->original_file_name() }}
  • @endforeach @endif

    Attach files to share


    Drop files here

    Share Settings

    @if (!isset($share_case))

    Share for

    @endif
     
    is_allow_two_way) checked @endif> {{-- @dd($share_case->is_allow_two_way) --}} is_allow_two_way == false) checked @endif>
    {{-- {{ dd($case->link_case_with_form->form->is_allow_non_approved_emails) }} --}} @if ($case->link_case_with_form->form->allow_user_to_share_case_log == 1)
     
    is_log_viewable)> is_log_viewable)>
    @endif
     
    is_viewable) checked @endif> is_viewable == false) checked @endif name="is_viewable" value="0">
    @foreach ($case->link_case_with_form->form->stages as $key => $stage)
     {{ $stage->stage_name }}
    @foreach ($stage->groups as $group)
     {{ $group->group_name }}
    @foreach ($group->questions as $question)
    @if ($case->link_case_with_form->data->where('question_id', $question->id)->first()) @php $value = $case->link_case_with_form->data ->where( 'question_id', $question->id, ) ->first(); @endphp
    share_case_data_radact()->where('data_id', $value->id)->first()) checked @endif name="answer_{{ $value->id }}" class="group_name @if ($question->form_card_id) form_card_field @endif"> : {{ $value->question_value }}
    @endif
    @endforeach
    @endforeach
    @endforeach {{-- @foreach ($case->link_case_with_form->data as $data) @if ($data->question)

    {{$data->question->question_name}}: {{$data->question_value}}


    @endif @endforeach --}}
    {{-- --}}
    @section('styles') {{-- --}} @endsection @section('scripts') @endsection @endsection