@extends('layouts.app') @section('title') {{__('Project Contract')}} @endsection @section('breadcrumb')

{{__('Project Contracts')}}

@endsection @section('content') @if(isset($show)) @endif

{{__('Project Contract')}}

{{ __('Discount') }}
{{ __('Tests') }}
@if (isset($contract)) @foreach ($contract['tests']->sortBy(function ($t) { return $t->priceable->name; }) as $test) @endforeach @else @foreach ($tests as $test) @endforeach @endif
{{ __('Name') }} {{ __('Price') }}
{{ $test['priceable']['name'] }}
{{ $test['name'] }}
{{ __('Packages') }}
@if (isset($contract)) @foreach ($contract['packages'] ->sortBy(function ($t) { return $t->priceable->name; }) as $package) @endforeach @else @foreach ($packages as $package) @endforeach @endif
{{ __('Name') }} {{ __('Price') }}
{{ $package['priceable']['name'] }}
{{ $package['name'] }}
    @if (isset($attachments)) @foreach ($attachments as $attach)
  • @php $file_ext_arr = explode('.', $attach->filename); $file_ext = end($file_ext_arr); @endphp {{ $file_ext_arr[0] }} @endforeach @endif
@endsection @section('scripts') @endsection