JFIFxxC      C  " }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr@php $plan = Utility::getChatGPTSettings(); @endphp @extends('layouts.admin') @section('page-title') {{ $contract->subject }} @endsection @push('css-page') @endpush @push('script-page') {{-- --}} @endpush @section('page-title') {{ __('Lead Detail') }} @endsection @section('title')
@endsection @section('breadcrumb') {{ __('Contract Detail') }} @endsection @section('action-button')
@if ($plan->enable_chatgpt == 'on')
{{ __(' Generate With AI') }}
@endif @if (\Auth::user()->type == 'company' || \Auth::user()->type == 'hr') @can('Create Contract') {{-- @if (\Auth::user()->type == 'company' && $contract->status == 'accept') --}} @endcan @endif {{-- @if (\Auth::user()->type == 'company' || \Auth::user()->type == 'employee') --}} {{-- @endif --}} {{-- @if (\Auth::user()->type == 'company' || \Auth::user()->type == 'employee') --}} {{-- @endif --}} {{-- @if ((\Auth::user()->type == 'company' && $contract->company_signature == '') || (\Auth::user()->type == 'employee' && $contract->employee_signature == '')) @if ($contract->status == 'accept') @endif @endif --}} @if (\Auth::user()->type == 'company' || \Auth::user()->type == 'hr') @elseif(\Auth::user()->type == 'employee' && $contract->status == 'accept') @endif @php $status = App\Models\Contract::status(); @endphp @if (\Auth::user()->type == 'employee') @endif
@endsection @section('content')
{{ __('Attachment') }}

{{ count($contract->files) }}

{{ __('Comment') }}

{{ count($contract->comment) }}

{{ __('Notes') }}

{{ count($contract->note) }}

{{ __('Contract Detail') }}
{{ __('Employee Name') }}
{{ $contract->employee->name }}
{{ __('Subject') }}
{{ $contract->subject }}
{{ __(' Type') }}
{{ $contract->contract_type->name }}
{{ __('Value') }}
{{ Auth::user()->priceFormat($contract->value) }}
{{ __('Start Date') }}
{{ Auth::user()->dateFormat($contract->start_date) }}
{{ __('End Date') }}
{{ Auth::user()->dateFormat($contract->end_date) }}
{{ __('Description ') }}
{{ Form::open(['route' => ['contracts.description.store', $contract->id]]) }}
@can('Create Contract')
{{ Form::submit(__('Add'), ['class' => 'btn btn-primary']) }}
{{ Form::close() }} @endcan
{{ __('Attachments') }}
@if (\Auth::user()->type == 'company' || \Auth::user()->type == 'hr')
@elseif(\Auth::user()->type == 'employee' && $contract->status == 'accept')
@endif @foreach ($contract->files as $file)
{{ $file->files }}

{{ number_format(\File::size(storage_path('contract_attechment/' . $file->files)) / 1048576, 2) . ' ' . __('MB') }}

@php $attachments = \App\Models\Utility::get_file('contract_attechment'); @endphp
@can('Delete Attachment') @if (\Auth::user()->id == $file->user_id || \Auth::user()->type == 'company' || \Auth::user()->type == 'hr')
{!! Form::open(['method' => 'GET', 'route' => ['contracts.file.delete', [$contract->id, $file->id]]]) !!} {!! Form::close() !!}
@endif @endcan
@endforeach
{{ __('Comments') }}
{{ __('Notes') }}
@if ($plan->enable_chatgpt == 'on') @if (\Auth::user()->type == 'company' || \Auth::user()->type == 'hr') @elseif(\Auth::user()->type == 'employee' && $contract->status == 'accept') @endif @endif
@if (\Auth::user()->type == 'company' || \Auth::user()->type == 'hr')
{{ Form::open(['route' => ['contracts.note.store', $contract->id]]) }}
{{ Form::submit(__('Add'), ['class' => 'btn btn-primary']) }}
{{ Form::close() }} @elseif(\Auth::user()->type == 'employee' && $contract->status == 'accept')
{{ Form::open(['route' => ['contracts.note.store', $contract->id]]) }}
{{ Form::submit(__('Add'), ['class' => 'btn btn-primary']) }}
{{ Form::close() }} @endif {{-- @if ($contract->status == 'accept')
{{ Form::open(['route' => ['contracts.note.store', $contract->id]]) }}
{{ Form::submit(__('Add'), ['class' => 'btn btn-primary']) }}
{{ Form::close() }} @endif --}}
@foreach ($contract->note as $note) @php $user = \App\Models\User::find($note->user_id); $logo = \App\Models\Utility::get_file('uploads/avatar/'); @endphp

{{ $note->note }}

{{ $note->created_at->diffForHumans() }}
@can('Delete Note') @if (\Auth::user()->id == $note->user_id || \Auth::user()->type == 'company' || \Auth::user()->type == 'hr')
{!! Form::open(['method' => 'GET', 'route' => ['contracts.note.destroy', $note->id]]) !!} {!! Form::close() !!}
@endif @endcan
@endforeach
@endsection @push('script-page') {{-- url: $("#form-comment").data('action'), --}} {{-- location.reload(); --}} @endpush