Skip to content

Contracts

Manage Contracts (e.g., lease/rental). Search, add/edit, preview PDF, and delete.

Filters:

  • Search by contract number or landlord
  • Add button (permission: create HomeContract)

Table columns:

  • ID
  • Contract Number
  • Landlord
  • Start Date
  • End Date
  • Type
  • Monthly Rent (+ currency)
  • Status (Active/Inactive/Terminated)
  • Address
  • Actions

Actions (permission-gated):

  • Edit (edit HomeContract)
  • Delete (delete HomeContract) with confirmation
  • Preview PDF (embedded viewer)

Add/Edit Contract modal fields:

  • Contract Number
  • Landlord (dropdown)
  • Start/End Date
  • Duration, Duration in Persian (text)
  • Type (lease/rental/other)
  • Monthly Rent + Currency (select)
  • Tax Percentage
  • Special Terms, Special Terms in Persian
  • Address, Address in Persian
  • Status (active/inactive/terminated)

Other modals:

  • Delete confirmation modal
  • PDF preview modal (embed)

Access & route

  • Permission: view HomeContract
  • Route name: procurement.contract
  • Sidebar: see resources/views/livewire/procurement/pr-menu.blade.php