@extends('layouts.app') @section('content')

CONTRACT DETALI

@if(session('success'))
@endif @if(session('error'))
@endif
@if($contract->active) @php $active = $contract->active; @endphp
@if($contract->branch)
@else
@endif
currency) value="{{round($contract->guarantee_value,2)}} {{$contract->currency->name}}" @else value="{{round($contract->guarantee_value,2)}} RON" @endif class="form-control info" >
@if(!$user->access->restrictions)
currency) value="{{round($active->contract_value,2)}} {{$active->currency->name}}" @else value="{{round($active->contract_value,2)}} RON" @endif class="form-control info">
currency) value="{{round($active->tie_value,2)}} {{$active->currency->name}}" @else value="{{round($active->tie_value,2)}} RON" @endif class="form-control info">
currency) value="{{round($active->tva_value/$active->currency->value,2)}} {{$active->currency->name}}" @else value="{{round($active->tva_value,2)}} RON" @endif class="form-control info">
@endif
@if($active->completed) @php $water = 'Necompletat'; $gas = 'Necompletat'; $sanitation = 'Necompletat'; $electricity = 'Necompletat'; if($active->water==2) { $water = 'Invest Intermed GF'; } else if($active->water==1) { $water = 'Proprietar'; } if($active->gas==2) { $gas = 'Invest Intermed GF'; } else if($active->gas==1) { $gas = 'Proprietar'; } if($active->electricity==2) { $electricity = 'Invest Intermed GF'; } else if($active->electricity==1) { $electricity = 'Proprietar'; } if($active->sanitation==2) { $sanitation = 'Invest Intermed GF'; } else if($active->sanitation==1) { $sanitation = 'Proprietar'; } @endphp

PARTEA TEHNICA

@else @if($user->access->subrole->type==3)
@endif @endif
@endif
@csrf @method('PUT')
@error('rent') {{$message}} @enderror
@error('number') {{$message}}
@enderror
@error('start_date') {{$message}} @enderror
@if(!$contract->branch)
@endif
@error('end_date') {{$message}} @enderror
@error('supplier_id') {{$message}} @enderror
@php $guarantee = $contract->guarantee_value; if($contract->currency) { $guarantee = $contract->guarantee_value; } @endphp
@if($contract->currency) {{round($contract->guarantee_value*$contract->currency->value,2)}} RON @endif
@error('address') {{$message}} @enderror
@error('resignation_days') {{$message}} @enderror
@error('expire_email') {{$message}} @enderror
@error('cadaster_number') {{$message}} @enderror
@error('property_identification') {{$message}} @enderror
@if(!$contract->active) @else @if(!$user->access->restrinctions) @endif @endif
@if(!$user->access->restrictions)
Achitate
@foreach($contract->paymentsConfirmed as $confirmed) @if($confirmed->additional->currency) @else @endif @endforeach
#ID Valoare Valoare in valuta Termen de plata Total(Invest) Termen de plata Confirmata de Status Actiuni
#{{$confirmed->id}}{{round($confirmed->payment_value*$confirmed->additional->currency->value,2)}} {{round($confirmed->payment_value,2)}} {{$confirmed->additional->currency->name}}{{round($confirmed->payment_value,2)}} ---{{Carbon\Carbon::parse($confirmed->payment_term)->format('d-m-Y')}} {{round($confirmed->total,2)}} RON {{Carbon\Carbon::parse($confirmed->updated_at)->format('d-m-Y')}} {{$confirmed->user->username}} Achiata
@endif
@csrf
@error('additional_number') {{$message}} @enderror
Conditii in asteptare
@foreach($contract->waiting as $waiting) @if($waiting->currency) @else @endif @endforeach
#Numar Identificare Data Inceperi Valabilitate Condtiii Valoare Contract Valoare in valuta Optiuni
#{{$waiting->additional_number}} {{Carbon\Carbon::parse($waiting->starts_at)->format('d-m-Y')}} {{Carbon\Carbon::parse($waiting->ends_at)->format('d-m-Y')}}{{round($waiting->contract_value,2)}} RON {{round($waiting->contract_value)}} {{$waiting->currency->name}}--- {{round($waiting->contract_value,2)}} RON
Istoric Conditii
@foreach($contract->history as $history) @php $water = 'Necompletat'; $gas = 'Necompletat'; $sanitation = 'Necompletat'; $electricity = 'Necompletat'; if($history->water==1) { $water = 'Invest Intermed GF'; } else if($history->water==2) { $water = 'Proprietar'; } if($history->gas==1) { $gas = 'Invest Intermed GF'; } else if($history->gas==2) { $gas = 'Proprietar'; } if($history->electricity==1) { $electricity = 'Invest Intermed GF'; } else if($history->electricity==2) { $electricity = 'Proprietar'; } if($history->sanitation==1) { $sanitation = 'Invest Intermed GF'; } else if($history->sanitation==2) { $sanitation = 'Proprietar'; } @endphp @if($history->currency) @else @endif @endforeach
#Numar Indentificare Data Inceperi Valabilitate Condtiii Valoare Contract Valoare in valuta Optiuni
#{{$history->additional_number}} {{Carbon\Carbon::parse($history->start_date)->format('d-m-Y')}} {{Carbon\Carbon::parse($history->start_date)->format('d-m-Y')}} {{round($history->contract_value,2)}} RON{{round($history->contract_value/$history->currency->value,2)}} {{$history->currency->name}}----
Platii Generate
@foreach($contract->payments as $payment) @if($payment->additional->currency) @else @endif @endforeach
Valoare Valoare in valuta Tva Procent % Tva Valoare (RON) Total(Invest) Tie Procent Valoare Tie(Ron) Termen de plata Status Optiuni
{{round($payment->payment_value*$payment->additional->currency->value,2)}} {{round($payment->payment_value,2)}} {{$payment->additional->currency->name}}{{round($payment->payment_value,2)}} ---{{$payment->tva_percent}} {{round($payment->tva_value,2)}} {{round($payment->total,2)}} RON {{$payment->tie_percent}} {{round($payment->tie_value,2)}} {{Carbon\Carbon::parse($payment->payment_term)->format('d-m-Y')}} In Asteptare
@if($contract->active) @php $active=$contract->active; @endphp @endif @if(!$contract->active) @endif @endsection @push('js') @endpush