@extends('layouts.admin') @php $client_keyword = Auth::user()->getGuard() == 'client' ? 'client.' : ''; @endphp @section('page-title') {{__('Contracts')}} @endsection @section('links') @if(\Auth::guard('client')->check())
| {{__('Contracts')}} | @if(Auth::user()->getGuard() != 'client'){{__('Client')}} | @endif{{__('Project')}} | {{__('Subject')}} | {{__('Value')}} | {{__('Type')}} | {{__('Start Date')}} | {{__('End Date')}} | {{__('Status')}} | {{__('Action')}} |
|---|---|---|---|---|---|---|---|---|---|
| {{ App\Models\Utility::contractNumberFormat($contract->id) }} | @if(Auth::user()->getGuard() != 'client'){{!empty($contract->clients)?$contract->clients->name:'' }} | @endif{{!empty( $contract->projects ) ? $contract->projects->name : ''}} | {{ $contract->subject }} | {{$currentWorkspace->priceFormat($contract->value) }} | {{ $contract->contract_type->name }} | {{App\Models\Utility::dateFormat($contract->start_date)}} | {{App\Models\Utility::dateFormat($contract->end_date)}} | @if($contract->status == 'pending') {{__('Pending')}} @elseif($contract->status == 'accept') {{__('Accept')}} @else {{__('Decline')}} @endif | @if ($currentWorkspace->permission == 'Owner' || Auth::user()->getGuard() == 'client') @endif @auth('web') @if($contract->status == 'accept') @endif @endauth |