@extends('layouts.app') @php $profile = asset(Storage::url('upload/profile/')); @endphp @section('page-title') {{ __('Client Details') }} @endsection @section('breadcrumb') @endsection @push('script-page') @endpush @section('content')
{{ __('Assign Documrnt') }}
@if (Gate::check('show document')) @endif @foreach ($documents as $document) @if ( Gate::check('show document')) @endif @endforeach
{{ __('Name') }} {{ __('Assigned To') }} {{ __('Category') }} {{ __('Sub Category') }} {{ __('Tags') }} {{ __('Stage') }} {{ __('Created By') }} {{ __('Created At') }}{{ __('Action') }}
{{ $document->name }} {{ optional($document->AssignTo)->name }} {{ !empty($document->category) ? $document->category->title : '-' }} {{ !empty($document->subCategory) ? $document->subCategory->title : '-' }} @foreach ($document->tags() as $tag) {{ $tag->title }}
@endforeach
@if (!empty($document->StageData)) {{ optional($document->StageData)->title }} @endif {{ !empty($document->createdBy) ? $document->createdBy->name : '' }} {{ dateFormat($document->created_at) }}
{!! Form::open(['method' => 'DELETE', 'route' => ['document.destroy', encrypt($document->id)]]) !!} @if (Gate::check('show document')) @endif {!! Form::close() !!}
@endsection