⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.142
Server IP:
217.76.53.76
Server:
Linux vmi1397931.contaboserver.net 5.4.0-105-generic #119-Ubuntu SMP Mon Mar 7 18:49:24 UTC 2022 x86_64
Server Software:
Apache
PHP Version:
8.2.27
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
www
/
wwwroot
/
hrm.com.ng
/
resources
/
views
/
contracts
/
Edit File: index.blade.php
@extends('layouts.admin') @section('page-title') {{ __(' Contract') }} @endsection @section('breadcrumb')
{{ __('Home') }}
{{ __('Contract ') }}
@endsection @section('action-button')
@can('Create Contract')
@endcan
@endsection @section('content')
{{ __('Total Contracts') }}
{{ $cnt_contract['total'] }}
{{ __('This Month Total Contracts') }}
{{ $cnt_contract['this_month'] }}
{{ __('This Week Total Contracts') }}
{{ $cnt_contract['this_week'] }}
{{ __('Last 30 Days Total Contracts') }}
{{ $cnt_contract['last_30days'] }}
{{ __('#') }}
{{ __('Employee Name') }}
{{ __('subject') }}
{{ __('Value') }}
{{ __('Type') }}
{{ __('Start Date') }}
{{ __('End Date') }}
{{ __('Status') }}
{{ __('Action') }}
@foreach ($contracts as $contract)
{{-- @can('View contract') --}}
{{ Auth::user()->contractNumberFormat($contract->id) }}
{{-- @else --}} {{-- {{ \Auth::User()->contractNumberFormat($contract->id) }} --}} {{-- @endcan --}}
{{ $contract->employee->name }}
{{ $contract->subject }}
{{ Auth::user()->priceFormat($contract->value) }}
{{ $contract->contract_type->name }}
{{ Auth::user()->dateFormat($contract->start_date) }}
{{ Auth::user()->dateFormat($contract->end_date) }}
@if ($contract->status == 'accept')
{{ __('Accept') }}
@elseif($contract->status == 'decline')
{{ __('Decline') }}
@elseif($contract->status == 'pending')
{{ __('Pending') }}
@endif
@can('Create Contract') {{-- @if ($contract->status == 'accept') --}}
{{-- @endif --}} @endcan {{-- @if (\Auth::user()->type == 'company' || \Auth::user()->type == 'hr' || \Auth::user()->type == 'employee') --}}
{{-- @endif --}} @can('Edit Contract')
@endcan @can('Delete Contract')
{!! Form::open(['method' => 'DELETE', 'route' => ['contract.destroy', $contract->id]]) !!}
{!! Form::close() !!}
@endcan
@endforeach
@endsection
Simpan