One Hat Cyber Team
  • Dir : ~/www/wwwroot/hrm.com.ng/resources/views/contracts/
  • Edit File: show.blade.php
    @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