@extends('layouts.admin') @push('script-page') @endpush @section('page-title') {{__('Manage Contract')}} @endsection @section('title')
| {{__('#')}} | @endif{{__('Subject')}} | @if(Gate::check('manage contract')){{__('Customer')}} | @endif{{__('Type')}} | {{__('Value')}} | {{__('Start Date')}} | {{__('End Date')}} | {{__('Status')}} | {{--{{__('Description')}} | --}}{{__('Action')}} |
|---|---|---|---|---|---|---|---|---|---|
| @if(\Auth::user()->type =='company') @if(\Auth::user()->can('show contract')) {{\Auth::user()->contractNumberFormat($contract->id)}} @endif @else @if(\Auth::user()->can('show contract')) {{\Auth::user()->contractNumberFormat($contract->id)}} @endif @endif | {{ $contract->subject}} | @if(Gate::check('manage contract')){{ !empty($contract->clients)?$contract->clients->name:'' }} | @endif{{ !empty($contract->types)?$contract->types->name:'' }} | {{ \Auth::user()->priceFormat($contract->value) }} | {{ \Auth::user()->dateFormat($contract->start_date )}} | {{ \Auth::user()->dateFormat($contract->end_date )}} | @if($contract->edit_status == 'accept') {{__('Accept')}} @elseif($contract->edit_status == 'decline') {{ __('Decline') }} @elseif($contract->edit_status == 'pending') {{ __('Pending') }} @endif | {{----}} | @if((\Auth::user()->can('duplicate contract')) && ($contract->edit_status == 'accept')) @endif @if(\Auth::user()->type =='company') @if(\Auth::user()->can('show contract')) @endif @else @if(\Auth::user()->can('show contract')) @endif @endif @if(\Auth::user()->can('edit contract')) @endif @if(\Auth::user()->can('delete contract')) @endif |