@extends('layouts.app') @section('title', __('spreadsheet::lang.spreadsheet')) @section('content') @section('css') @endsection @include('spreadsheet::layouts.nav')

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

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

@can('create.spreadsheet') @endcan
    @foreach($folders as $folder)
  • {{$folder->name}} @can('create.spreadsheet') @endcan
      @foreach($spreadsheets->where('folder_id', $folder->id) as $spreadsheet)
    • {{$spreadsheet->name}} @if(auth()->user()->id == $spreadsheet->created_by) @endif
      {{@format_datetime($spreadsheet->updated_at)}} {{$spreadsheet->createdBy->user_full_name}}
      @if(count($spreadsheet->shares) > 0)
      @if(!empty($spreadsheet->shered_users)) @lang('user.users') - {{implode(', ', $spreadsheet->shered_users)}} @endif @if(!empty($spreadsheet->shared_roles)) @lang('user.roles') - {{implode(', ', $spreadsheet->shared_roles)}} @endif @if(!empty($spreadsheet->shared_todos)) @lang('spreadsheet::lang.todos') - {{implode(', ', $spreadsheet->shared_todos)}} @endif
      @endif
    • @endforeach
  • @endforeach
  • @lang('spreadsheet::lang.untitled')
      @foreach($spreadsheets->where('folder_id', null) as $spreadsheet)
    • {{$spreadsheet->name}} @if(auth()->user()->id == $spreadsheet->created_by) @endif
      {{@format_datetime($spreadsheet->updated_at)}} {{$spreadsheet->createdBy->user_full_name}}
      @if(count($spreadsheet->shares) > 0)
      @if(!empty($spreadsheet->shered_users)) @lang('user.users') - {{implode(', ', $spreadsheet->shered_users)}} @endif @if(!empty($spreadsheet->shared_roles)) @lang('user.roles') - {{implode(', ', $spreadsheet->shared_roles)}} @endif @if(!empty($spreadsheet->shared_todos)) @lang('spreadsheet::lang.todos') - {{implode(', ', $spreadsheet->shared_todos)}} @endif
      @endif
    • @endforeach
@stop @section('javascript') @endsection