@extends('layouts.admin') @push('script-page') @endpush @section('page-title') {{__('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('view contract')) {{\Auth::user()->contractNumberFormat($contract->id)}} @endif @else @if(\Auth::user()->can('view 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->status == 'start') {{__('Started')}} @else {{__('Close')}} @endif | {{----}} | @if((\Auth::user()->can('duplicate contract')) && ($contract->status == 'start')) @endif @if(\Auth::user()->type =='company') @if(\Auth::user()->can('view contract')) @endif @else @if(\Auth::user()->can('view contract')) @endif @endif @if(\Auth::user()->can('edit contract')) @endif @if(\Auth::user()->can('delete contract')) @endif |