@extends('admin.layouts.main-layout') @section('content')
@if(!empty($candidate->image)) @endif
@include('admin.partials.message') @if ($errors->any())
Please resolve following errors:
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@csrf @method('PUT')
@php if($candidate->tempSourceCode) { $cleanSourceCode = $candidate->tempSourceCode->source_code ?? ''; } else if ($candidate->sourceCode) { $cleanSourceCode = $candidate->sourceCode->source_code ?? ''; } else { $cleanSourceCode = ''; } @endphp {{--
@if ($cleanSourceCode!= '') Get Data From AI @endif Get Source Code
--}}
{{$candidate->first_name}}
{{$candidate->middle_name ? $candidate->middle_name : ' - '}}
{{$candidate->last_name ? $candidate->last_name : '-'}}
{{$candidate->email}}
{{ $candidate->titles->pluck('name')->implode(', ') }}
{{$candidate->home_phone ?? ''}}
{{ $candidate->firm->name}}
{{ $candidate->firmOffices->pluck('name')->implode(', ') }}
{{$candidate->lawschool->name ?? '-'}}
{{$candidate->jd_year ?? '-'}}
{{$candidate->candidateAcademic->undergraduate_school ?? '-'}}
{{$candidate->candidateAcademic->undergraduate_school_graduation_year ?? '-'}}
{{$candidate->candidateAcademic->master_degree_school ?? ''}}
{{$candidate->candidateAcademic->master_degree_subject ?? ''}}
{{$candidate->candidateAcademic->mba_school ?? ''}}
{{$candidate->candidateAcademic->md_school ?? '-'}}
{{$candidate->candidateAcademic->phd_school ?? '-'}}
{{$candidate->candidateAcademic->phd_subject ?? ''}}
{{$candidate->candidateAcademic->llm_in_tax_law_school ?? ''}}

@foreach ($candidate->lawschoolhonors as $honor) {{$honor->name}}
@endforeach
{{$candidate->candidateAcademic->other_llm_school ?? ''}}

@if (!empty($candidate->lawjournals)) @foreach ($candidate->lawjournals as $lawjournal) {{$lawjournal->name}}
@endforeach @endif
{{$candidate->experience ?? ''}}

@if (!empty($candidate->undergradspecialities)) @foreach ($candidate->undergradspecialities as $undergradspeciality) {{$undergradspeciality->name}}
@endforeach @endif
{{$candidate->linkedIn_url ?? ''}}

@foreach ($candidate->practiceAreas as $practice) {{$practice->name}}
@endforeach

@if (!empty($candidate->industries)) @foreach ($candidate->industries as $industry) {{$industry->name}}
@endforeach @endif

@foreach ($candidate->languages as $language) {{$language->name}}
@endforeach

@foreach ($candidate->baradmissions as $baradmissions) {{$baradmissions->name}}
@endforeach

@if (!empty($candidate->clerkships)) @foreach ($candidate->clerkships as $clerkship) {{$clerkship->name}}
@endforeach @endif

@foreach ($candidate->clerkshipwithjudges as $judge) {{$judge->name}}
@endforeach

@if (!empty($candidate->accolades)) @foreach ($candidate->accolades as $accolade) {{$accolade->name}}
@endforeach @endif

@if (!empty($candidate->clients)) @foreach ($candidate->clients as $client) {{$client->name}}
@endforeach @endif

@foreach ($candidate->adversParties as $parties) {{$parties->name}}
@endforeach

@if (!empty($candidate->probonos)) @foreach ($candidate->probonos as $probono) {{$probono->name}}
@endforeach @endif

@if (!empty($candidate->memberships)) @foreach ($candidate->memberships as $membership) {{$membership->name}}
@endforeach @endif

@foreach ($candidate->affinitygroups as $group) {{$group->name}}
@endforeach

@foreach ($candidate->news as $news) {{$news->name}}
@endforeach

@foreach ($candidate->matters as $matter) {{$matter->name}}
@endforeach

@foreach ($candidate->thoughtLeaderships as $leadership) {{$leadership->name}}
@endforeach
{{$candidate->bio?? ''}}

{{--
{{$cleanSourceCode}}
--}} {{-- {!! nl2br(e($cleanSourceCode)) !!} --}} {{$cleanSourceCode}} {{-- {!! nl2br(e($cleanSourceCode)) !!} --}}
@php if(!empty($candidate->sourceCode->ai_response)) { $data = json_decode($candidate->sourceCode->ai_response); echo "
";
                                        print_r($data);
                                    }
                                    @endphp

                                
@endsection @section('footerJsCode') @endsection