@extends('spreadsheet::layouts.app') @section('title', __('spreadsheet::lang.view_spreadsheet')) @section('content')

@lang('spreadsheet::lang.view_spreadsheet')

@php $redirect = action([\Modules\Spreadsheet\Http\Controllers\SpreadsheetController::class, 'index']); if ($spreadsheet->created_by != auth()->user()->id) { $redirect = action([\Modules\Essentials\Http\Controllers\ToDoController::class, 'index']); } @endphp @lang('messages.go_back')
@if($spreadsheet->created_by == auth()->user()->id)

@endif @if(auth()->user()->can('superadmin') || auth()->user()->can('create.spreadsheet'))
{!! Form::open(['url' => action([\Modules\Spreadsheet\Http\Controllers\SpreadsheetController::class, 'update'], $spreadsheet->id), 'id' => 'spreadsheet', 'method' => 'put']) !!} {!! Form::close() !!}
@endif
@stop @section('javascript') @endsection