@extends('layouts.app') @push('head-script') @endpush @section('page-title')

@lang($pageTitle)

id) }}"> @lang('app.edit') id) }}"> @lang('modules.invoices.downloadPdf')
@endsection @section('content')
{!! $contract->contract_detail !!}
@if($contract->company_logo)
@endif

{{ ucwords($contract->client->client_detail->company_name)}}

{!! nl2br($contract->client->client_detail->address) !!}

@if($contract->amount!=0)

@lang('modules.contracts.contractValue'): {{ $global->currency->currency_symbol }}{{ $contract->amount }}

@endif @if($contract->end_date != null) @endif
# @lang('modules.contracts.contractNumber') {{ $contract->id }}
@lang('modules.projects.startDate') {{ $contract->start_date->format($global->date_format) }}
@lang('modules.contracts.endDate') {{ $contract->end_date->format($global->date_format) }}
@lang('modules.contracts.contractType') {{ $contract->contract_type->name }}
@if($contract->signature)

@lang('modules.contracts.signature')

@endif
{!! Form::open(['id'=>'addDiscussion','class'=>'ajax-form','method'=>'POST']) !!}
{!! Form::close() !!}
@foreach($contract->discussion as $discussion)
{{ $discussion->user->name }} - {{ $discussion->created_at->diffForHumans(\Carbon\Carbon::now()) }}
@if($discussion->from == $user->id)
@endif
{{ $discussion->message }}
@endforeach
@if($contract->company_logo)
@endif

{{ ucwords($contract->client->client_detail->company_name)}}

{!! nl2br($contract->client->client_detail->address) !!}

@lang('modules.contracts.contractValue'): {{ $global->currency->currency_symbol }}{{ $contract->amount }}

# @lang('modules.contracts.contractNumber') {{ $contract->id }}
@lang('modules.projects.startDate') {{ $contract->start_date->format($global->date_format) }}
@lang('modules.contracts.endDate') {{ $contract->end_date == null ? $contract->end_date : $contract->end_date->timezone($global->timezone)->format($global->date_format) ?? '' }}
@lang('modules.contracts.contractType') {{ $contract->contract_type->name }}
@if($contract->signature)

@lang('modules.contracts.signature')

@endif
{{ csrf_field() }} {!! Form::hidden('contract_id', $contract->id) !!}
    @forelse($contract->files as $file)
  • {{ $file->filename }}
    @if(is_null($file->external_link))    @endif    {{ $file->created_at->diffForHumans() }}
  • @empty
  • @lang('messages.noFileUploaded')
  • @endforelse
{{--Timer Modal--}} {{--Timer Modal Ends--}} @endsection @push('footer-script') @endpush