Skip to main content

Overview

The Sistema de Abogados includes a comprehensive activity scheduling system with calendar integration. You can create three types of activities:
  • General Activities (Actividad): Standalone activities not linked to specific cases or expedientes
  • Case Activities (ActividadCaso): Activities associated with specific legal cases
  • Expediente Activities (ActividadConciliacion): Activities related to conciliation expedientes
All activities are displayed in an integrated calendar view using FullCalendar, with color-coding to distinguish between activity types.

Activity Types and Color Coding

The calendar uses visual color coding to differentiate activity types:
Activity TypeColorText ColorAccess Roles
General ActivitiesRed (rgb(239, 68, 68))BlackAll authenticated users
Case ActivitiesGreen (rgb(34, 197, 94))Blackencargado, admin, abogado
Expediente ActivitiesBlue (rgb(59, 130, 246))Blackencargado, admin, asistente

Creating General Activities

General activities are for tasks not tied to specific cases or expedientes (e.g., office meetings, deadlines, reminders).
1

Navigate to Activities

Go to the activities module at /agenda/actividad.
2

Click Create New Activity

Click “Create” or “Nueva Actividad” to open the creation form.
3

Enter Required Fields

Complete the mandatory information:
  • Title (titulo): Brief description of the activity
  • Date (fecha): Date of the activity (format: YYYY-MM-DD)
  • Time (hora): Time of the activity (format: HH:MM)
4

Add Optional Details

Optionally provide:
  • Address (direccion): Physical location or meeting address
  • Description (descripcion): Detailed notes about the activity
5

Save Activity

Click “Save” to create the activity. Confirmation: “Actividad registrada correctamente.”

General Activity Validation

'titulo' => 'required',
'direccion' => 'nullable',
'descripcion' => 'nullable',
'fecha' => 'required',
'hora' => 'required'
Use descriptive titles that clearly indicate the purpose of the activity for easy identification in the calendar.

Creating Case Activities

Case activities link directly to specific legal cases, allowing you to track hearings, client meetings, and case-related deadlines.
1

Navigate to Case Activities

Go to /agenda/actividadCaso to access case activities.
2

Start New Case Activity

Click “Create” or “Nueva Actividad” to open the form.
3

Fill Required Information

Complete all required fields:
  • Title (titulo): Activity description (e.g., “Court Hearing”, “Client Meeting”)
  • Date (fecha): Activity date
  • Time (hora): Activity time
  • Case (id_caso): Select the case this activity belongs to
4

Add Optional Details

Provide additional information:
  • Address (direccion): Location (courthouse, office, etc.)
  • Description (descripcion): Specific details, preparation notes, or objectives
5

Save Case Activity

Submit the form. Success message: “Actividad registrada correctamente.”

Case Activity Validation

'titulo' => 'required',
'direccion' => 'nullable',
'descripcion' => 'nullable',
'fecha' => 'required',
'hora' => 'required',
'id_caso' => 'required'
Case activities require encargado, admin, or abogado role permissions.

Calendar Display for Case Activities

Case activities appear on the calendar with:
  • Title format: “{Activity Title} del expediente {Case Number}”
  • Color: Green
  • Example: “Court Hearing del expediente CASE-2026-001”

Creating Expediente Activities

Expediente activities track conciliation meetings, mediation sessions, and other events related to conciliation files.
1

Navigate to Expediente Activities

Access expediente activities at /agenda/actividadConciliacion.
2

Create New Activity

Click “Create” or “Nueva Actividad de Conciliación”.
3

Complete Required Fields

Enter all mandatory information:
  • Title (titulo): Activity name (e.g., “Initial Mediation Session”, “Settlement Meeting”)
  • Date (fecha): Date of the conciliation activity
  • Time (hora): Scheduled time
  • Expediente (id_expediente): Select the expediente this activity belongs to
4

Add Location and Notes

Optionally add:
  • Address (direccion): Mediation center or meeting location
  • Description (descripcion): Agenda, parties involved, or preparation requirements
5

Save Activity

Submit to create. Confirmation: “Actividad registrada correctamente.”

Expediente Activity Validation

'titulo' => 'required',
'direccion' => 'nullable',
'descripcion' => 'nullable',
'fecha' => 'required',
'hora' => 'required',
'id_expediente' => 'required'
Expediente activities require encargado, admin, or asistente role permissions.

Calendar Display for Expediente Activities

Expediente activities appear on the calendar with:
  • Title format: “{Activity Title} del expediente {Expediente Number}”
  • Color: Blue
  • Example: “Mediation Session del expediente EXP-2026-042”

Calendar View and Navigation

The integrated calendar provides a comprehensive view of all scheduled activities using FullCalendar.
1

Access Calendar

Navigate to the calendar view at /agenda/calendar.
2

View All Activities

The calendar displays all three types of activities with color coding:
  • Red: General activities
  • Green: Case activities
  • Blue: Expediente activities
3

Navigate Time Periods

Use the calendar navigation:
  • Month View: See all activities for the current month
  • Week View: Detailed weekly schedule
  • Day View: Focus on a single day’s activities
  • Navigation Buttons: Move forward/backward through time periods
4

Click on Activities

Click any activity on the calendar to view details or take action.

Calendar Event Format

Events are displayed with the following structure:
{
  title: 'Activity Title [+ del expediente CASE/EXP-NUMBER]',
  start: 'YYYY-MM-DD HH:MM',
  end: 'YYYY-MM-DD HH:MM',
  color: 'rgb(r, g, b)',
  textColor: 'black'
}
Use the calendar’s month view for high-level planning and day view for detailed scheduling.

Editing and Updating Activities

All three activity types can be edited after creation.

Editing General Activities

1

Navigate to Activities List

Go to /agenda/actividad to see all general activities.
2

Select Activity to Edit

Click the “Edit” button for the activity you want to modify.
3

Update Information

Modify any field (title, date, time, address, description).
4

Save Changes

Submit the form. Confirmation: “Actividad actualizada correctamente.”

Editing Case Activities

1

Go to Case Activities

Navigate to /agenda/actividadCaso.
2

Edit Activity

Click “Edit” for the case activity you want to change.
3

Modify Details

Update activity information. Note: The associated case (id_caso) becomes nullable during updates.
4

Save

Submit changes. Message: “Actividad actualizada correctamente.”

Editing Expediente Activities

1

Access Expediente Activities

Go to /agenda/actividadConciliacion.
2

Select Activity

Click “Edit” for the activity to modify.
3

Update Fields

Change any activity details as needed.
4

Submit Changes

Save updates. Confirmation: “Actividad actualizada correctamente.”
When editing case or expediente activities, be careful not to accidentally unlink them from their associated case or expediente.

Deleting Activities

Activities can be permanently deleted if no longer needed.

Deleting General Activities

1

Find Activity

Locate the activity in the list at /agenda/actividad.
2

Click Delete

Click the delete or trash icon.
3

Confirm Deletion

Confirm the action. Message: “Actividad eliminada correctamente.”

Deleting Case Activities

1

Locate Case Activity

Find the activity at /agenda/actividadCaso.
2

Delete Activity

Click delete and confirm.
3

Confirmation

Success message: “Actividad eliminada correctamente.”

Deleting Expediente Activities

1

Find Expediente Activity

Navigate to /agenda/actividadConciliacion.
2

Remove Activity

Click delete and confirm the action.
3

Deleted

Confirmation: “Actividad eliminada correctamente.”
Deleting an activity does not affect the associated case or expediente - only the activity record is removed.

Searching Activities

Quickly find activities using the search functionality available for all three activity types.
1

Use Search Bar

On any activity list page, use the search input field.
2

Enter Search Terms

Search by:
  • Activity title
  • Description
  • Date
3

View Results

Results display with pagination (5 activities per page).

Activity Reminders and Notifications

While the system currently tracks activities in the calendar, consider these best practices for staying on top of scheduled events:

Manual Reminder Strategies

  • Daily Calendar Review: Check the calendar daily for upcoming activities
  • Weekly Planning: Review the week ahead every Monday
  • Use Descriptions: Add preparation tasks and requirements in the description field
  • Export Calendar: Use the calendar export functionality (if available) to sync with external calendar apps

Preparation Checklist

For important activities, include in the description:
  • Required documents
  • Attendee list
  • Preparation tasks
  • Special requirements
  • Follow-up actions
Create activities with adequate lead time and use descriptive titles to make them easily recognizable in the calendar.

Best Practices

For All Activity Types

  • Descriptive Titles: Use clear, specific titles (“Client Meeting - Contract Review” instead of “Meeting”)
  • Accurate Timing: Double-check dates and times before saving
  • Complete Addresses: Include full location details for in-person meetings
  • Detailed Descriptions: Add context, preparation needs, and objectives
  • Regular Updates: Update or delete activities that are cancelled or rescheduled

For Case Activities

  • Link to Correct Case: Verify you’ve selected the right case before saving
  • Court Deadlines: Create activities for all critical court dates
  • Client Communications: Schedule follow-up meetings immediately after court appearances
  • Document Preparation: Create activities for document preparation well in advance of deadlines

For Expediente Activities

  • Mediation Preparation: Create preparation activities before main sessions
  • Party Coordination: Include contact information in descriptions
  • Session Duration: Consider creating end times that reflect typical session length
  • Follow-up Sessions: Schedule follow-up meetings immediately after initial sessions

Calendar Management

  • Color Awareness: Use color coding to quickly identify activity types
  • Avoid Conflicts: Check the calendar before scheduling new activities
  • Buffer Time: Allow travel time between activities at different locations
  • Regular Review: Weekly calendar reviews help prevent scheduling conflicts

Workflow Examples

Scheduling a Court Hearing

1

Create Case Activity

Create a case activity for the hearing date.
2

Add Preparation Activity

Create another activity 2-3 days before for document preparation.
3

Include Details

Add courtroom number, judge name, and required documents in description.
4

Set Reminder

Create a general activity the day before as a final reminder.

Planning a Conciliation Session

1

Create Expediente Activity

Schedule the mediation session with the expediente.
2

Notify Parties

Use the description to note which invitados have confirmed attendance.
3

Prepare Materials

Create a preparation activity to review documents and prepare the mediation room.
4

Schedule Follow-up

Immediately create a follow-up activity for the next session if needed.

Technical Reference

General Activities

Controller: ActividadController.php Routes:
  • List activities: GET /agenda/actividad
  • Create activity: POST /agenda/actividad
  • Edit form: GET /agenda/actividad/{id}/edit
  • Update activity: PUT /agenda/actividad/{id}
  • Delete activity: DELETE /agenda/actividad/{id}
Model: Actividad

Case Activities

Controller: ActividadCasoController.php Routes:
  • List activities: GET /agenda/actividadCaso
  • Create activity: POST /agenda/actividadCaso
  • Edit form: GET /agenda/actividadCaso/{id}/edit
  • Update activity: PUT /agenda/actividadCaso/{id}
  • Delete activity: DELETE /agenda/actividadCaso/{id}
Model: ActividadCaso

Expediente Activities

Controller: ActividadConciliacionController.php Routes:
  • List activities: GET /agenda/actividadConciliacion
  • Create activity: POST /agenda/actividadConciliacion
  • Edit form: GET /agenda/actividadConciliacion/{id}/edit
  • Update activity: PUT /agenda/actividadConciliacion/{id}
  • Delete activity: DELETE /agenda/actividadConciliacion/{id}
Model: ActividadConciliacion

Calendar View

Controller: CalendarController.php Route: GET /agenda/calendar Library: FullCalendar (JavaScript calendar library)

Build docs developers (and LLMs) love