@can('project.estimate.update') @isset ( $editLink ) @lang('lang.edit') @endif @endcan @can('see.budget.index') @if($estimateTemplate->cliente_estado_cotizacions->last() !== null && ($estimateTemplate->cliente_estado_cotizacions->last()->estado_cotizacion_id == \App\Models\EstadoCotizacion::ACCEPTED)) @lang('lang.see_budget') @endif @endcan @if( $estimateTemplate->cliente_estado_cotizacions->last() !== null && ($estimateTemplate->cliente_estado_cotizacions->last()->estado_cotizacion_id == \App\Models\EstadoCotizacion::ACCEPTED) && Storage::disk('local')->exists($estimateTemplate->cliente_estado_cotizacions->last()->path_file) ) @lang('lang.send') @endif @can('project.estimate.detail.admin.show') @if(!empty($estimateTemplate->uuid))
@lang('lang.for_admin') @endif @endcan @can('project.estimate.download') @if(isset($estimateTemplate->cliente_estado_cotizacions->last()->path_file) && Storage::disk('local')->exists($estimateTemplate->cliente_estado_cotizacions->last()->path_file))
@csrf @lang('lang.download')
@endif @if($estimateTemplate->cliente_estado_cotizacions->last() !== null)
@lang('lang.for_client') @if($estimateTemplate->cliente_estado_cotizacions->last()->estado_cotizacion_id === \App\Models\EstadoCotizacion::ACCEPTED)
@lang('lang.download')
@endif @endif @endcan @can('project.estimate.update') @if($estimateTemplate->proyecto_id && empty($estimateTemplate->cliente_estado_cotizacions->last()->estado_cotizacion_id))
@lang('lang.approve') @endif @endcan @can('project.estimate.delete') @isset ( $deleteLink )
@method('delete') @csrf
@lang('lang.delete')
@endif @endcan