Overview
The Expediente module manages conciliation processes - alternative dispute resolution procedures where parties attempt to reach settlement through mediation. Each expediente tracks the complete conciliation lifecycle, including subject matters (submaterias), invited parties (invitados), assigned conciliators, related documents, and scheduled activities.Comprehensive Process Tracking
Track expedientes from initiation through resolution with complete details including expediente numbers, dates, descriptions, and status.
Subject Matter Classification
Assign multiple submaterias to categorize the subject areas and legal topics involved in the conciliation.
Party Management
Track all invited parties participating in the conciliation process with complete contact and role information.
Conciliator Assignment
Assign professional conciliators to facilitate negotiations and maintain neutrality in the resolution process.
Expediente Data Structure
Each expediente record contains:| Field | Description | Required |
|---|---|---|
| n_expediente | Unique expediente number or identifier | Yes |
| fecha_inicio | Expediente start date | Yes |
| fecha_final | Completion or closing date | Optional |
| descripcion | Detailed description of the conciliation matter | Optional |
| estado | Current expediente status | Yes |
| id_cliente | Associated client ID (foreign key) | Yes |
The
n_expediente field serves as the primary identifier and is indexed for search. Establish a consistent numbering scheme to distinguish expedientes from casos.Creating a New Expediente
Follow these steps to initiate a conciliation process:-
Navigate to Expedientes Module
- Access via route:
/conciliacion/expediente - Click “Create New Expediente”
- Access via route:
-
Select Client
- Choose the requesting client from the dropdown
- All active clients are available for selection
-
Enter Expediente Details
- Expediente Number (
n_expediente): Enter unique identifier - Start Date (
fecha_inicio): Set when conciliation begins - End Date (
fecha_final): Optional, set when process concludes - Description: Add detailed information about the dispute
- Status (
estado): Set initial status (typically “Active” or “Initiated”)
- Expediente Number (
-
Save the Expediente
- System validates required fields
- Expediente is created and becomes searchable
- Redirects to expediente detail view for additional configuration
Expediente Detail View
The comprehensive detail page provides access to all expediente-related information:Basic Information Section
- Expediente number and current status
- Client information with link to profile
- Start and end dates
- Complete description
Submaterias (Subject Matters)
- View all assigned subject matter categories
- Add new submaterias
- Remove submaterias when no longer applicable
Invited Parties (Invitados)
- List all parties invited to participate
- Add new invitados
- View complete contact information
- Remove invitados if they withdraw
Conciliators (Conciliadores)
- View assigned conciliators
- Assign new conciliators
- Remove conciliator assignments
- Access conciliator contact information
Expediente Documents
- Access all documents attached to the expediente
- Upload new documents with metadata
- Download and view documents
- Manage document organization
Related Activities
- View scheduled conciliation sessions
- Access hearing dates and times
- Link to calendar module for activity management
Managing Submaterias
Submaterias categorize the legal subjects involved in the conciliation:What are Submaterias?
Submaterias represent specific areas of law or dispute topics, such as:- Contract disputes
- Labor issues
- Property conflicts
- Family matters
- Consumer complaints
- Neighborhood disputes
Assignment Process
-
Access Expediente Detail
- Navigate to the specific expediente
-
Assign Submateria
- In the Submaterias section, click “Assign Subject Matter”
- Select from available submaterias in the catalog
- Submit the assignment
-
View Assigned Submaterias
- All assigned submaterias display in a list
- Each shows the submateria name and category
-
Remove Submateria
- Click “Remove” next to any submateria
- Confirmation message displays
- Relationship is deleted (submateria remains in catalog)
Multiple submaterias can be assigned to a single expediente. This is common in complex disputes involving several legal areas.
Managing the Submaterias Catalog
Create and maintain submaterias:- Access catalog at
/conciliacion/submaterias - Create new submaterias as needed
- Edit existing submateria names
- Delete unused submaterias
- Submaterias can be reused across multiple expedientes
Managing Invited Parties (Invitados)
Track all parties participating in the conciliation:Invitado Information Structure
Each invited party record includes:- Full name
- DNI/RUC identification
- Company affiliation (if applicable)
- Email address
- Phone number
- Physical address
- Location references
- Role in the dispute
Adding Invitados to Expediente
-
Create or Select Invitado
- First, ensure the invitado exists in the system
- Create new invitados via
/conciliacion/invitado - Or select existing invitado from the database
-
Assign to Expediente
- From expediente detail page, go to Invitados section
- Click “Assign Invited Party”
- Select invitado from dropdown
- Submit the assignment
-
View Invitado Details
- All assigned invitados display with contact information
- Access full party details for communication
-
Remove Invitado Assignment
- Click “Remove” to unassign invitado from expediente
- This doesn’t delete the invitado record
- Only removes the relationship to this expediente
Managing the Invitados Catalog
- Access at
/conciliacion/invitado - Create new invited party records
- Update contact information as needed
- Search for existing invitados before creating duplicates
- Invitados can participate in multiple expedientes
Managing Conciliators (Conciliadores)
Assign professional conciliators to facilitate the process:What is a Conciliator?
Conciliators are neutral third parties who:- Facilitate discussions between disputing parties
- Help parties explore settlement options
- Maintain impartiality throughout the process
- Guide parties toward mutually acceptable resolutions
- Document agreements reached
Conciliator Information
Each conciliador record includes:- Full name and credentials
- Professional registration number
- Contact information
- Specialization areas
- Availability
Assigning Conciliators
-
Access Expediente Detail
- Navigate to the specific expediente
-
Assign Conciliator
- In the Conciliadores section, click “Assign Conciliator”
- Select from registered conciliators
- Submit the assignment
-
View Assignment
- Assigned conciliators display with contact details
- Access conciliator credentials and specializations
-
Remove Assignment
- Click “Remove” if conciliator needs to be replaced
- Relationship is deleted (conciliator remains in system)
Multiple conciliators can be assigned to complex or high-value disputes. The system supports co-facilitation arrangements.
Managing the Conciliadores Catalog
- Access at
/conciliacion/conciliador - Register new conciliators
- Update professional information
- Track conciliator assignments and workload
- Maintain credentials and certifications
Searching Expedientes
Quickly find expedientes using integrated search:Search Functionality
Search operates across:- Expediente number (
n_expediente) - Status (
estado)
Search Process
-
Enter Search Terms
- Type expediente number or status in search box
- Search is case-insensitive with partial matching
-
View Results
- Results display in paginated format (5 per page)
- Each result shows expediente number, client, and status
-
Access Details
- Click any result to view complete expediente information
Editing Expedientes
Update expediente information as the process progresses:-
Access Edit Mode
- From expediente detail page, click “Edit”
-
Update Fields
- Modify any field including status, dates, description
- Client assignment can be changed if necessary
-
Save Changes
- All fields are revalidated
- Success message confirms update
- Changes are immediately searchable
Regularly update the expediente status to reflect the current stage of conciliation. This helps team coordination and reporting.
Expediente Status Management
Theestado field tracks the conciliation lifecycle:
Common Status Values
- Initiated: Conciliation request received, process starting
- Active: Sessions scheduled and ongoing
- In Progress: Parties are negotiating
- Agreement Reached: Parties have settled
- No Agreement: Conciliation failed, parties didn’t settle
- Closed: Process completed (with or without agreement)
- Suspended: Temporarily paused
- Cancelled: Process cancelled by parties
Status Update Best Practices
- Update status after each conciliation session
- Set
fecha_finalwhen status changes to “Closed” - Use consistent terminology across all expedientes
- Document status changes in the description field
- Review active expedientes weekly
Deleting Expedientes
Expediente deletion is protected to maintain data integrity:Deletion Protection
Expedientes cannot be deleted when they have:- Assigned submaterias
- Assigned invitados
- Assigned conciliadores
- Attached documents
- Related activities
Safe Deletion Process
-
Remove All Associations
- Unassign all submaterias
- Remove all invitado assignments
- Unassign all conciliadores
- Delete all expediente documents
- Delete related activities from calendar
-
Delete Expediente
- Once all associations removed, deletion is allowed
- Navigate to expediente detail
- Click “Delete”
- Confirm deletion
- Expediente is permanently removed
Role-Based Access Control
Expediente management is restricted to conciliation-focused roles:| Role | Access Level |
|---|---|
| Encargado (Manager) | Full access - create, view, edit, delete, assign |
| Admin | Full access - create, view, edit, delete, assign |
| Asistente (Assistant) | Full access - create, view, edit, delete, assign |
| Abogado (Lawyer) | No access to expedientes |
Lawyers (abogado) work exclusively with casos and do not have access to the expediente module. This separation maintains clear workflow boundaries between litigation and conciliation processes.
Integration with Other Modules
Client Relationship
- Every expediente must be linked to a client (
id_cliente) - View all client expedientes from client detail page
- Expediente appears in client’s expediente list upon creation
Document Management
- Expedientes support unlimited document attachments
- Documents stored in
/public/documento/ - Each document has UUID for secure access
- Special fields for acta (minutes) documents
- See Document Management
Calendar Activities
- Create expediente-specific activities (ActividadConciliacion)
- Schedule conciliation sessions and hearings
- Activities appear on main calendar with distinct color coding
- See Calendar & Activities
Catalog Management
- Submaterias catalog managed at
/conciliacion/submaterias - Invitados catalog managed at
/conciliacion/invitado - Conciliadores catalog managed at
/conciliacion/conciliador - All catalogs support search and reuse
Conciliation Workflow Example
Phase 1: Initiation
Phase 1: Initiation
When a conciliation request arrives:
- Verify client exists in system (create if new)
- Create expediente with basic information
- Assign unique expediente number
- Set status to “Initiated”
- Add comprehensive description of dispute
- Assign relevant submaterias to categorize the matter
Phase 2: Preparation
Phase 2: Preparation
Before the first session:
- Add all invited parties with complete contact information
- Assign appropriate conciliator(s)
- Upload initial documents (requests, evidence, etc.)
- Schedule first conciliation session via calendar
- Send notifications to all parties
- Update status to “Active”
Phase 3: Conciliation Sessions
Phase 3: Conciliation Sessions
During the negotiation process:
- Update status to “In Progress” after first session
- Upload session minutes (actas) after each meeting
- Schedule follow-up sessions as needed
- Update description with key developments
- Add documents as agreements are drafted
- Track all communications with parties
Phase 4: Resolution
Phase 4: Resolution
When the process concludes:
- Update status to “Agreement Reached” or “No Agreement”
- Set fecha_final to completion date
- Upload final agreement document or closure acta
- Update description with outcome summary
- Change status to “Closed”
- Send final notifications to all parties
Best Practices
Technical Implementation
For developers and system administrators:Model Location
app/Models/Expedientes.php
Controller
app/Http/Controllers/ExpedienteController.php
Routes
- List expedientes:
GET /conciliacion/expediente - Create expediente:
POST /conciliacion/expediente - View expediente:
GET /conciliacion/expediente/{expediente} - Edit expediente:
PUT /conciliacion/expediente/{expediente} - Delete expediente:
DELETE /conciliacion/expediente/{expediente} - Assign submateria:
POST /conciliacion/expediente/{expediente}/submaterias - Remove submateria:
DELETE /conciliacion/expediente/submaterias/{ex_submateria} - Assign invitado:
POST /conciliacion/expediente/{expediente}/invitados - Remove invitado:
DELETE /conciliacion/expediente/invitados/{ex_invitado} - Assign conciliador:
POST /conciliacion/expediente/{expediente}/conciliadores - Remove conciliador:
DELETE /conciliacion/expediente/conciliadores/{ex_conciliador}
Related Models
Cliente.php- Client relationshipSubmaterias.php- Subject mattersInvitadoConciliacion.php- Invited partiesConciliador.php- ConciliatorsExpediente_has_submateria.php- Submateria pivot tableexpediente_has_invitado.php- Invitado pivot tableExpediente_has_conciliador.php- Conciliador pivot tableExpedienteDocumento.php- DocumentsActividadConciliacion.php- Activities
Database Tables
expedientes- Main expediente tableexpediente_has_submaterias- Expediente-submateria relationshipsexpediente_has_invitados- Expediente-invitado relationshipsexpediente_has_conciliadors- Expediente-conciliador relationships
Relationships
- BelongsTo:
cliente- Each expediente belongs to one client - BelongsToMany:
submaterias- Many-to-many via pivot - HasMany:
conActividades- One-to-many with activities