@php($title = 'Договор') @extends('layouts.app') @section('content')
ФИО
{{ $contract->deal->user->name }}
Телефон
{{ $contract->deal->user->phone }}
@if ($contract->deal->user->email)
Email
{{ $contract->deal->user->email }}
@endif
{{ $contract->deal->complex->city->name }}
{{ $contract->deal->complex->name }}
Статус
{{ __('contracts.status_' . $contract->status) }}
Дата обновления
{{ $contract->updated_at->format('d.m.y H:i') }}
@if ($contract->square)
Площадь объекта
{{ $contract->square }}
@endif @if ($contract->floor)
Этаж
{{ $contract->floor }}
@endif @if ($contract->room)
Помещение
{{ $contract->room }}
@endif
Стоимость
{{ number_format($contract->price, 2, ',', ' ') }}
{{ $contract->payment_type }}
Вознаграждение
{{ number_format(GetAgentPaymentForContract($contract), 2, ',', ' ') }}
@if ($contract->base64_image)
@endif
Комментарий к договору @if ($contract->comment) @endif
@if ($contract->comment)
{{ $contract->comment }}
@else
Оставьте комментарий, он будет виден только вам
@endif
История договора
@if ($contract->deal->notifications->count() == 0)
{{ __('notifications.has no history') }}
@else @foreach ($contract->deal->notifications as $notification)
{{ $notification->created_at }}
{{ $notification->data['text'] }}
@endforeach @endif
@endsection