@extends('layouts.admin') @php $client_keyword = Auth::user()->getGuard() == 'client' ? 'client.' : ''; @endphp @section('page-title') {{ __('Contracts') }} @endsection @section('links') @if (\Auth::guard('client')->check()) @else @endif @endsection @section('action-button') @auth('web') @if ($currentWorkspace->creater->id == Auth::user()->id) @endif @endauth @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'] }}

@if (Auth::user()->getGuard() != 'client') @endif @foreach ($contracts as $contract) @if (Auth::user()->getGuard() != 'client') @endif @endforeach
{{ __('Contracts') }}{{ __('Client') }}{{ __('Project') }} {{ __('Subject') }} {{ __('Value') }} {{ __('Type') }} {{ __('Start Date') }} {{ __('End Date') }} {{ __('Status') }} {{ __('Action') }}
{{ App\Models\Utility::contractNumberFormat($contract->id) }} {{ !empty($contract->clients) ? $contract->clients->name : '' }}{{ !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 {!! Form::open([ 'method' => 'DELETE', 'route' => ['contracts.destroy', [$currentWorkspace->slug, $contract->id]], 'id' => 'delete-form-' . $contract->id, ]) !!} {!! Form::close() !!} @endauth
@endsection @push('scripts') @endpush