@extends('tenant.rentals.rentals-tabs') @php $activeTab = 'rentals-contracts'; @endphp @section('breadcrumb') @include('tenant.layouts.breadcrumb', [ 'items' => [ __('breadcrumb.rentals') => '/rentals', __('breadcrumb.contracts') => '#', ], ]) @endsection @section('sidebar') @include('tenant.layouts.sidebar', ['activeItem' => 'rentals.contracts']) @endsection @section('content-field')
{{-- --}}
@can('rentals-contracts-add') @lang('rentals/contracts/index.add_new_contract') @endcan
@csrf
@php $table_options = [ 'enableSumValuesOnColumns' => [7, 8, 9], 'lang' => ['noAvailableData' => __('noAvailableData.no_invoices')], ]; @endphp @php $amount_sum = $knowledge_tax_sum = $services_amount_sum = 0; @endphp @forelse ($contracts as $contract) @php $amount_sum += $contract->amount; $knowledge_tax_sum += $contract->knowledge_tax; $services_amount_sum += $contract->services_amount; @endphp @empty @endforelse @if (!$contracts->isEmpty()) @endif
@lang('rentals/contracts/index.contract') @lang('rentals/contracts/index.tenant') @lang('rentals/contracts/index.type_of_rental') @lang('rentals/contracts/index.shop_booth') @lang('rentals/contracts/index.starting_work_permit_date') @lang('rentals/contracts/index.expire_work_permit_date') @lang('rentals/contracts/index.contract_duration_type') @lang('rentals/contracts/index.contract_value') @lang('rentals/contracts/index.knowledge') @lang('rentals/contracts/index.services') @lang('rentals/contracts/index.status') @lang('rentals/contracts/index.creation_date') @lang('general.procedures')
{{ $contract->order }} {{ $contract->tenant->name }} {{ $contract->rented_type_as_ar }} {{ $contract->rented_place->title }} {{ $contract->parseDateToCarbon('period_starting')->format('Y-m-d') }} {{ $contract->parseDateToCarbon('period_ending')->format('Y-m-d') }} {{ $contract->contract_term_type_as_ar }} {{ dn($contract->amount) }} {{ $contract->payment_frequency_as_ar }} {{ $contract->knowledge_tax ? dn($contract->knowledge_tax) . ' سنوياً' : '---' }} {{ $contract->services_amount ? dn($contract->services_amount) : '---' }} {{ $contract->status_as_text }} {{ $contract->created_at->format('Y-m-d') }} @can('rentals-contracts-show')
  • @lang('rentals/contracts/index.view_contract')
  • @endcan
  • @if ($contract->status == 'draft') @can('rentals-contracts-edit')
  • @lang('rentals/contracts/index.edit_contract')
  • @endcan @endif @if ($contract->status == 'draft') @can('rentals-contracts-post')
  • @csrf
  • @endcan @can('rentals-contracts-delete')
  • @csrf @method('DELETE')
  • @endcan @endif @if ($contract->status == 'trashed') @can('rentals-contracts-restore')
  • @csrf
  • @endcan @endif @if ($contract->status == 'active') @can('rentals-contracts-renew')
  • @csrf
  • @endcan @can('rentals-contracts-terminate')
  • @lang('rentals/contracts/index.terminate_contract')
  • @endcan @endif
    @lang('rentals/contracts/index.no_contracts_yet')
    {{ dn($amount_sum) }} {{ dn($knowledge_tax_sum) }} {{ dn($services_amount_sum) }}
    {!! $contracts->links() !!}
    @endsection @push('script') @endpush