@extends('layouts.base')
@include('record::sidebar')
@section('breadcrumb')
Inicio
Administración de Expedientes
@endsection
@section('content')
@include('record::records.partials.show.cover')
@if (auth()->user()->belongsToDepartment($record->latestMove->department_id))
@if (! in_array($record->latestStatus->status, ['archived', 'closed'], true))
@include('record::records.partials.show.action')
@endif
@endif
@include('record::records.partials.show.applicant')
@if(!empty($formData->employee))
@include('record::records.partials.show.employee')
@endif
@if (auth()->user()->belongsToDepartment($record->latestMove->department_id))
@if (! in_array($record->latestStatus->status, ['archived', 'closed'], true))
@include('record::records.partials.show.rename')
@include('record::records.partials.show.move')
@include('record::records.partials.show.action-button')
@endif
@if ($record->latestStatus->status !== 'archived')
@include('record::records.partials.show.status')
@endif
@include('record::records.partials.show.print-receipt')
@include('record::records.partials.show.print-cover')
@endif
@include('record::records.partials.show.delete')
@include('record::records.partials.show.timeline')
@endsection