@extends('layouts.base') @section('caption', 'Information about deals') @section('title', 'Information about deals') @section('lyric', 'Information about deals') @section('content')
@if(session()->has('message_success'))
Well done! {{ session()->get('message_success') }}
@elseif(session()->has('message_danger'))
Danger! {{ session()->get('message_danger') }}
@endif
Stored deals terms

Name {{ $deal->name }}
Deal between company {{ $deal->companies->name }}
Start date {{ $deal->start_time }}
End date {{ $deal->end_time }}
Status {{ $deal->is_active ? 'Yes' : 'No' }}

Full information about {{ $deal->companies->name }}


Name {{ $deal->companies->name }}
Tax number {{ $deal->companies->tax_number }}
Phone {{ $deal->companies->phone }}
City {{ $deal->companies->city }}
Billing address {{ $deal->companies->billing_address }}
Country {{ $deal->companies->country }}
Postal code {{ $deal->companies->postal_code }}
Employees size {{ $deal->companies->employees_size }}
Fax {{ $deal->companies->fax }}
Description {{ $deal->companies->description }}
Status {{ $deal->companies->is_active ? 'Yes' : 'No' }}

{{ Form::open(['route' => 'processStoreDealTerms']) }}
{!! Form::textarea('body', 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', ['class' => 'form-control', 'id' => 'summary-ckeditor']) !!}
{{ Form::hidden('dealId', $deal->id) }}
{{ Form::submit('Save terms of argeement', ['class' => 'btn btn-primary']) }}
{{ Form::close() }}
Stored deals terms
@foreach($dealsTerms as $key => $terms) @endforeach
# Created at Action
{{ $terms->id }} {{ $terms->formattedDate }} {{ Form::open(['url' => 'deals/terms/delete/', 'class' => 'pull-right']) }} {{ Form::hidden('_method', 'DELETE') }} {{ Form::hidden('termId', $terms->id) }} {{ Form::submit('Delete', ['class' => 'btn btn-small btn-danger btn-padding']) }} {{ Form::close() }} {{ Form::open(['url' => 'deals/terms/generate-pdf/', 'class' => 'pull-right']) }} {{ Form::hidden('_method', 'POST') }} {{ Form::hidden('termId', $terms->id) }} {{ Form::hidden('dealId', $deal->id) }} {{ Form::submit('Generate PDF', ['class' => 'btn btn-small btn-padding btn-pdf']) }} {{ Form::close() }}
{{ Form::open(['route' => 'processStoreDealTerms']) }}
{!! Form::textarea('body', 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', ['class' => 'form-control', 'id' => 'summary-ckeditor']) !!}
{{ Form::hidden('dealId', $deal->id) }}
{{ Form::submit('Save terms of argeement', ['class' => 'btn btn-primary']) }}
{{ Form::close() }}
@endsection